Re: NSArrayController and programatic add
Re: NSArrayController and programatic add
- Subject: Re: NSArrayController and programatic add
- From: Scott Anguish <email@hidden>
- Date: Thu, 13 Apr 2006 17:21:34 -0400
On Apr 13, 2006, at 5:18 PM, Ryan Glover wrote:
Hello,
I have a NSMutableArray that I populate programatically. I have a
NSTableView that I want to show the contents of the array. I have
created an NSArrayController to manage the table view but when I
add an item to my array in the program it is not reflected in the
table view. I have read a couple of web pages that suggest you
shouldn't modify the array behind the controllers back.
The doc is quite explicit about this.
First question in the troubleshooting doc
http://developer.apple.com/documentation/Cocoa/Conceptual/
CocoaBindings/Concepts/Troubleshooting.html#//apple_ref/doc/uid/
TP40002148
My question is, should I jettison the NSArrayController and code my
own controller to solve the problem or is it a simple matter to get
NSArrayController to recognize the changes I am making to the array
in the code?
_______________________________________________
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