Re: NSTreeController and NSOutlineView: How do I get to the outline view's item

2008-04-16 Thread Markus Spoettl
On Apr 16, 2008, at 12:18 AM, Quincey Morris wrote: If you're doing this in the context of populating the data model (e.g. creating nodes when initializing a new document), you'd probably want to do it by brute force: create the model data, then examine suitable rows of the outline view (pos

Re: NSTreeController and NSOutlineView: How do I get to the outline view's item

2008-04-16 Thread Quincey Morris
On Apr 15, 2008, at 19:48, Markus Spoettl wrote: I have a NSDocument subclass with a simple tree structure attached to an NSOutlineView via NSTreeController and bindings. I learned - through this list - to add items in KVO compliant way like this TreeNode *node = [[TreeNode init] alloc]; [

NSTreeController and NSOutlineView: How do I get to the outline view's item

2008-04-15 Thread Markus Spoettl
Hi, this probably sounds terribly stupid but apparently I can't find this out on my own so here I am asking for help again: I have a NSDocument subclass with a simple tree structure attached to an NSOutlineView via NSTreeController and bindings. I learned - through this list - to add it