• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSArray represented in 2 different views at same time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSArray represented in 2 different views at same time (From: Alexander Cohen <email@hidden>)

  • Prev by Date: Re: Shell tool with GUI
  • Next by Date: Re: Shell tool with GUI
  • Previous by thread: NSArray represented in 2 different views at same time
  • Next by thread: NSDictionary mutability test
  • Index(es):
    • Date
    • Thread