Re: Bindings of NSMutableArray of NSMutableArray
Re: Bindings of NSMutableArray of NSMutableArray
- Subject: Re: Bindings of NSMutableArray of NSMutableArray
- From: Jonathon Mah <email@hidden>
- Date: Thu, 19 Apr 2007 00:34:28 +0930
Hi Micha,
On 2007-04-19, at 00:12, Micha Fuhrmann wrote:
I've got an NSArrayController in my Nib which is bonded to an Nib
Instantiated Class ObjectHandler.
ObjectHandler contains the following ramification:
ObjectHandler -> NSMutableArray(Parent) -> items -> NSMutableArray
(Child) -> items -> NSString(name)
-> NSString(name)
I would like to display the NSString(name of the items in
NSMutableArray(Child) in a table using my NSArrayController. I can
display the NSString(name) of the items in NSMutableArray(Parent)
just fine using the NSArrayController -> contentArray, Model Key
Path -> NSString (name)".
I'm not entirely sure what you're meaning, but I think you're needing
another array controller. Bind this to "selection.children" (or
whatever the path is) of the parent array controller, then bind the
child table view to the children array controller, "arrangedObjects",
"name".
Jonathon Mah
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden