Re: NSArrayController using an external NSArray?
Re: NSArrayController using an external NSArray?
- Subject: Re: NSArrayController using an external NSArray?
- From: Todd Heberlein <email@hidden>
- Date: Thu, 19 Apr 2007 17:12:25 -0700
Note: I have found this problem mentioned in the "Troubleshooting
Cocoa Bindings" in the "Cocoa Bindings Programming Topics" document.
I am still trying to grok it, however.
Todd
PS. I am using an NSMutableArray by the way, not an NSArray.
On Apr 19, 2007, at 4:35 PM, Todd Heberlein wrote:
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:
40mac.com
This email sent to email@hidden
_______________________________________________
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