Re: NSArrayController: Modify contents programmatically
Re: NSArrayController: Modify contents programmatically
- Subject: Re: NSArrayController: Modify contents programmatically
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 21 Mar 2005 05:13:15 -0800
On Mar 21, 2005, at 5:06 AM, Felix Franz wrote:
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.
<http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>
"Programmatic modifications to arrays not noticed by table view"
and also in Apple's documentation at, for example, <http://
developer.apple.com/documentation/Cocoa/Conceptual/KeyValueObserving/
index.html>
mmalc
_______________________________________________
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