Re: binding to a controller not in my nib, how?
Re: binding to a controller not in my nib, how?
- Subject: Re: binding to a controller not in my nib, how?
- From: "Sean McBride" <email@hidden>
- Date: Fri, 2 Dec 2005 22:47:25 -0500
marquis logan (email@hidden) on 2005-12-02 21:05 said:
>
you could use a key path through "file's owner" and have multiple
>
array controllers bound to the same content array; it would be
>
beneficial to use kvc compliant accessors to manipulate this array.
>
alternatively you could programatically create an array controller
>
and bind multiple table columns to said controller in code. this
>
would cause the selections across nibs to be synchronized.
Thanks for these ideas marquis.
I don't want to bind programatically, so I'll try a key path through
file's owner. I had another idea too: move everything from MyWindow.nib
into MainMenu.nib. That way the NSArrayController would be in one nib,
and everything could bind to it easily in IB. I think this would be
best actually, but there doesn't seem to be a way to move things from
one nib to another. IB won't let you drag and drop across NIBs and it
only lets you copy and paste things one element at a time, and even then
when you paste you loose all connections and binding info. God I wish
Apple would work on IB!
Thanks again,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Mac Software Designer Montréal, Québec, Canada
_______________________________________________
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