NSArrayController: Modify contents programmatically
NSArrayController: Modify contents programmatically
- Subject: NSArrayController: Modify contents programmatically
- From: Felix Franz <email@hidden>
- Date: Mon, 21 Mar 2005 14:06:10 +0100
Hi all,
I want to change the contents of an array that is managed by an
NSArrayController via bindings. Does the Controller recognize
insertions and removals on the array properly, even if they are done
directly on the array bypassing the NSArrayController (without using
NSArrayController>>addObject) ?
I use a similar setup in an application. The NSArrayController is used
to fill a NSTableView. The content array is changed from the outside.
The newly inserted element only shows up, when the TableView is
resorted by clicking the column header. This is strange, since if I
register an observer for the array using the
addObserver:forKeyPath:options:context:-selector, I get the right
change results
in observeValueForKeyPath:ofObject:change:context:. The
NSArrayController should get these changes too, doesn't it?
Thanks in advance
felix
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden