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: marquis logan <email@hidden>
- Date: Fri, 2 Dec 2005 21:05:49 -0500
hey,
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.
regards,
nibs
On Dec 2, 2005, at 8:27 PM, Sean McBride wrote:
Hi all,
I have a nib with:
- a window containing a table view
- an NSArrayController
The array controller and table view are currently bound together.
Now,
due to a new feature, the underlying data, the NSArray that the
NSArrayController controls, will be shown by other UI elements that
are
not even part of the same NIB. So how can I do this? Where can I put
the NSArrayController? If its not in that NIB, the tableview can't
bind
to it. But if its in the NIB, that window will need to be open
(which I
don't want).
Must I go through "File's Owner" or "Shared Application" somehow?
Thanks!
--
____________________________________________________________
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
_______________________________________________
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