Re: Help: Data Modelling, NSTreeController and NSBrowser
Re: Help: Data Modelling, NSTreeController and NSBrowser
- Subject: Re: Help: Data Modelling, NSTreeController and NSBrowser
- From: John Harte <email@hidden>
- Date: Tue, 3 Oct 2006 23:54:05 -0400
On Oct 2, 2006, at 9:36 PM, Lachlan Deck wrote:
I have an entity defined called Category which has:
+ Attributes:
- name (String)
+ Relationships:
- category [toOne, Category optional]
- subcategories [toMany, Category, optional]
From within Interface Builder I've instantiated an NSTreeController
with bindings:
- Entity: Category (Automatically prepares content)
- Children keypath: subcategories
- Predicate: category == nil
- managedObjectContext: (Bind ticked)
- Bind to: AppDelegate
- modelKeyPath: managedObjectContext
And the NSBrowser:
- content:
- Bind to: TreeController
- controller key: arrangedObjects
- contentValues:
- Bind to: TreeController
- controller key: arrangedObjects
- Model key path: name
I don't know if this is the problem but in my NSBrowser I also have
- selectionIndexPaths
- Bind to: TreeController
- Controller Key: selectionIndexPaths
John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden