Re: Re: Binding one array controller to the variable of the content of
Re: Re: Binding one array controller to the variable of the content of
- Subject: Re: Re: Binding one array controller to the variable of the content of
- From: <email@hidden>
- Date: Wed, 16 Feb 2005 8:54:44 +0000
Works like a charm, Malcolm. I had a feeling it was something simple like that that I was missing. Also found something pretty cool. Since the columns in the NSTableView that displays the tracklistings are bound to my TrackController, and the contentArray is bound to an outlet in BootlegController, when I click the Remove button (bound to remove: from BootlegController) it also removes the row in the tracklist table. That's pretty cool. Thanks for the help, Malcolm.
James
>
> From: mmalcolm crawford <email@hidden>
> Date: 2005/02/16 Wed AM 08:25:55 GMT
> To: MacOSX-dev Dev <email@hidden>
> Subject: Re: Binding one array controller to the variable of the content of
> another
>
>
> On Feb 15, 2005, at 11:40 PM, <email@hidden>
> <email@hidden> wrote:
>
> > So in IB I have instantiated both Bootleg and Track objects, and have
> > created NSArrayController's for each, since I will need one for the
> > collection of Bootlegs (in one NSTableView) and another for the
> > collection of Tracks (in another NSTableView). My quandry is telling
> > the NSArrayController for the Track objects that the collection of
> > Track objects is to be stored in the variable of the content of
> > another NSArrayController.
>
> Is this any different in principle from the Master-Detail example at
> <http://developer.apple.com/documentation/Cocoa/Conceptual/
> CocoaBindings/Tasks/masterdetail.html>?
> Bind the contentArray of the Tracks array controller to [Bootlegs
> Controller].selection.tracks
> ?
> (See also the Weapons array controller for the popup menu in the
> Combatants example at
> <http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>.
>
> mmalc
_______________________________________________
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