Re: Has anyone any experience with NSTableView and NSArrayController ?
Re: Has anyone any experience with NSTableView and NSArrayController ?
- Subject: Re: Has anyone any experience with NSTableView and NSArrayController ?
- From: Scott Anguish <email@hidden>
- Date: Sat, 9 Oct 2004 02:02:12 -0400
On Oct 8, 2004, at 10:07 AM, Jeff Gilbert wrote:
Look for the section titled "Programmatic modifications to arrays not
noticed by table view". Basically, calling [array
addObjects:someObjects] will not cause the array controller to be
notified of the change to array. The technique I use is to call:
[[self mutableArrayValueForKey:@"array"] addObjects:someObjects]
On Oct 8, 2004, at 10:07 AM, Jeff Gilbert wrote:
Look for the section titled "Programmatic modifications to arrays not
noticed by table view". Basically, calling [array
addObjects:someObjects] will not cause the array controller to be
notified of the change to array. The technique I use is to call:
[[self mutableArrayValueForKey:@"array"] addObjects:someObjects]
The other option is to implement the indexed accessors for the
array in your model.
then you can insert/delete, etc.. using those accessors and changes
are noticed.
_______________________________________________
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