Re: NSArray represented in 2 different views at same time
Re: NSArray represented in 2 different views at same time
- Subject: Re: NSArray represented in 2 different views at same time
- From: "I. Savant" <email@hidden>
- Date: Mon, 8 Dec 2008 12:01:55 -0500
On Mon, Dec 8, 2008 at 11:58 AM, Alexander Cohen
<email@hidden> wrote:
> I've got a list of objects in an NSArray and i'm currently managing them
> with an NSArrayController and a view that is binded to it. Now i need to be
> able to show that same view in a new window with the same content but with
> possibly different selections and sort descriptors. I also need to update
> the content display in both views when an item is added or removed.
...
> Should i have an array controller for each view
... yes. Connected to the content array in the same way (which
should be fully KVC/KVO compliant for auto-updating).
> ... and have them notify each other of changes?
Not really, no. If things are set up properly, this should "just work".
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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