Re: NSArrayController using an external NSArray?
Re: NSArrayController using an external NSArray?
- Subject: Re: NSArrayController using an external NSArray?
- From: mmalc crawford <email@hidden>
- Date: Thu, 19 Apr 2007 23:13:54 -0700
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.
<http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/Concepts/Troubleshooting.html
>
"My collection controller isn’t displaying the current data"
[...]
You must either implement the indexed accessors for the collection key
in your model class
<http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>
"Programmatic modifications to arrays not noticed by table view"
mmalc
_______________________________________________
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