NSArrayController using an external NSArray?
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