• 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
NSArrayController and programatic add
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrayController and programatic add


  • Subject: NSArrayController and programatic add
  • From: Ryan Glover <email@hidden>
  • Date: Thu, 13 Apr 2006 17:18:59 -0400

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.

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?

Thank you,
Ryan

_______________________________________________
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


  • Follow-Ups:
    • Re: NSArrayController and programatic add
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: Is this program open?
  • Next by Date: Re: NSTextView (NSAttributedString) binding: Is it possible to programmatically change the value source?
  • Previous by thread: Re: NSTextView (NSAttributedString) binding: Is it possible to programmatically change the value source?
  • Next by thread: Re: NSArrayController and programatic add
  • Index(es):
    • Date
    • Thread