• 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
NSArrayController using an external NSArray?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrayController using an external NSArray?


  • Subject: NSArrayController using an external NSArray?
  • From: Todd Heberlein <email@hidden>
  • Date: Thu, 19 Apr 2007 16:35:41 -0700

I have a model object (for an NSDocument-class app) that includes a number of simple variables (e.g., int) and an NSArray. When I use an NSArrayController to bind to that NSArray object, it picks up the initial objects in the array (seeded in the model's -init method), but any subsequent additions to my model's local NSArray are ignored. It seems that the NSArrayController keeps its own internal NSArray and ignores mine.

Is there a way to have the NSArrayController continue to use my own local NSArray (i.e., is there a flag I can set), or do I need to start using the NSArrayController for all my storage?

(Or am I just confused and totally missing something?)

Thanks,

Todd

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: NSArrayController using an external NSArray?
      • From: mmalc crawford <email@hidden>
    • Re: NSArrayController using an external NSArray?
      • From: Todd Heberlein <email@hidden>
  • Prev by Date: Non-rectangular cursor tracking regions
  • Next by Date: Re: Global variable for whole application.
  • Previous by thread: Re: Non-rectangular cursor tracking regions
  • Next by thread: Re: NSArrayController using an external NSArray?
  • Index(es):
    • Date
    • Thread