• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSArrayController and programatic add
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >NSArrayController and programatic add (From: Ryan Glover <email@hidden>)

  • Prev by Date: Re: NSLayoutManager and whitespace
  • Next by Date: Re: Extending NSCalendar and NSDateFormatter?
  • Previous by thread: NSArrayController and programatic add
  • Next by thread: Running out of process VM
  • Index(es):
    • Date
    • Thread