• 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
NSArrays and NSArrayControllers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrays and NSArrayControllers


  • Subject: NSArrays and NSArrayControllers
  • From: Francisco Tolmasky <email@hidden>
  • Date: Fri, 11 Jan 2008 11:51:17 -0800

I have a container view which contains a number of inner views. These inner views represent an
equal number of model objects in an array which is bound to my container view through an NSArrayController.
I'm a little new to this, so I was wondering if there was an efficient way for a new inner view to be created
when an object is added to the array, and of course for one to be delete when an object is removed from
the array. To my understanding, the only message I will get is that the array *changed*, and I will thus be forced
to completely re-set up my views every time the array changes. Is this correct? Or is there some sort of
- (void)controllerDidAddObjects:toIndexes: ? Or perhaps I'm completely thinking about this in the wrong way.



Thanks!

Francisco Tolmasky
email@hidden
_______________________________________________

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


  • Follow-Ups:
    • Re: NSArrays and NSArrayControllers
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Re: NSTextfield value doesn't update binding when set programmatically
  • Next by Date: Re: NSTextfield value doesn't update binding when set programmatically
  • Previous by thread: Re: NSTextfield value doesn't update binding when set programmatically
  • Next by thread: Re: NSArrays and NSArrayControllers
  • Index(es):
    • Date
    • Thread