Все вопросы: [nsoutlineview]
19 вопросов
Как мне использовать NSTreeController, NSOutlineView и Core Data с «невидимым» корневым элементом?
У меня есть модель Core Data, которая состоит из простого дерева конкретной сущности, имеющей две связи, parent и children. У меня есть модель NSTreeController, управляющая моделью, с NSOutlineView, привязанной к NSTreeController. Моя проблема в том, что мне нужен единственный корневой объект...
EXC_BAD_ACCESS when using NSOutlineView
i'm trying to get a Outline view to display a directory, now I've edited the example from Apple to make it work from any directory I set, except when expanding any node I get "EXEC_BAD_ACCESS" from the NSOutlineView class. Here is the header file: #import <Cocoa/Cocoa.h> @interface SMLDi...
Increase too-tight icon spacing in NSOutlineView
I'm writing a Cocoa application that displays the contents of an archive file in an NSOutlineView. I provide custom icons for an NSBrowserCell in the outline column, but I haven't been able to get the spacing quite right — the folder icon always appears too close to the disclosure triangle, as sh...
NSOutlineView -- reloadItem:reloadChildren: crashing my application
I am trying to reload a particular item in my outline view using reloadItem or reloaditem:reloadchildren function in NSoutlineView but its crashing my entire application. please can you tell me a workaround for this like I also tried to collapse that item and expand it again but it is not reloadi...
How to keep the last tree item of NSOutlineView in the most bottom of a Sidebar?
I'd like to have the same behavior of special items as it's done in the Things application. I mean Logbook and Trash items in the bottom part of the Sidebar: Logbook and Trash items are in the most bottom http://tinyurl.com/lhctza Please advise any way to implement the same functionality in the...
Is there a simple way to combine a text and icon in an NSCell in Cocoa?
I'm trying to create a very simple selection list widget based on NSOutlineView. However, I'm having a hard time figuring out how to display an icon and a label right next to it, which is really the expected behavior in all the mainstream implementations of that kind of widget out there (iTunes, ...
Getting NSOutlineView rows to be editable
Does anyone here know how to make cells in NSOutlineView's editible? Im using the sampe code from apple and I cant seem to get it work at all. I am trying to set it up so that when you click twice in rapid succession on a cell in the NSOutlineView, the cell becomes editible so the user can updat...
How do you add context senstive menu to NSOutlineView (ie right click menu)
How do you add the ability to right click on a row in an NSOutlineView so you can say delete an object or some other activity. (ie Like when you right click on a folder in the Apple Mail app) I think I am half way there, I have a subclass of NSOutlineView that allows me to catch the right click ...
Changing default font size for NSTable/NSOutlineView
I dont quite understand how to change (decrease) the font size for the text in my NSOutlineView. The default text is larger than most applications use for their font size. There is some heirachical thing where you dont set the font directory but you inherit from something "above" the table or ou...
Problems with Drag and Drop in an NSOutlineView
The problem I have is that I have an NSOutlineView with Drag and Drop (see the bottom of post for code to make drag and drop work), it works, but when I drag one row into another row the dragged row becomes a child but it also stays where it was as a parent, and when I delete either row both of ...
Filtering a NSOutlineView/NSTreeController
How would I use a search box to filter a NSOutlineView/NSTreeController? I know it would have something to do with bindings and a predicate. But not specificaly how to. Could someone take me through the steps of filtering an NSOutlineView/NSTreeController?
NSOutlineView and NSTreeController example
Please send me some links on how to use NSOutlineView with NSTreeController bindings without using core data.
Как выбрать элементы в NSOutlineView без NSTreeController?
Я использую NSOutlineView без NSTreeController и реализовал свой собственный источник данных. Как лучше всего выбрать товар? NSOutlineView уже поддерживает expandItem: и collapseItem:. И мне не хватает удобного метода вроде `selectItem :. Как это сделать программно? Спасибо.
NSOutlineView, NSTreeController и willDisplayCell
Я новичок в Obj-C и Cocoa, так что простите за любую глупость. Я использую NSOutlineView с NSTreeController, который предоставляет ему массив моих собственных объектов. Мой делегатор использует willDisplayCell представления структуры для установки значка ячейки (я использую NSBrowserCell). Я ...
Создание подкласса NSOutlineView
Как бы вы создали подкласс NSOutlineView?
Как бы вы поместили изображение рядом с текстовой ячейкой только для родительских строк в представлении структуры?
Я хочу, чтобы рядом с текстовой ячейкой было изображение только для родительских строк в моем представлении структуры. Как то, что есть в Xcode: альтернативный текст http://snapplr.com/snap/wsgp . Как бы вы это сделали или вам понадобится пользовательская ячейка?
Почему строка в нижней части моего представления структуры удаляется, когда я нажимаю кнопку удаления, а не ту, которая была выбрана?
Когда я выбираю строку в моем представлении структуры (подключенном к NSTreeController) и нажимаю кнопку удаления, она не удаляет выбранную мной строку, а фактически удаляет строку в нижней части таблицы. Для получения дополнительной информации вот мои подключения для кнопки: http://snapplr....
NSTableView и NSOutlineView с перетаскиванием
У меня есть NSTableView и NSOutlineView, оба с их содержимым, предоставленным привязками, которые я хотел бы иметь некоторые функции перетаскивания: Перетащите строки из таблицы A на строку структуры B, где они будут скопированы в структуру данных, которую представляет строка в структуре ...
NSOutlineView - автоматическое развертывание всех узлов
У меня NSOutlineView привязан к NSTreeController (если это имеет значение), и я хотел бы расширить каждый узел в моем -awakeFromNib(). Я также хотел бы одновременно программно выбрать первого дочернего элемента первого узла. С табличными представлениями такие вещи просто, но контуры мне совер...