• 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 using an external NSArray?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController using an external NSArray?


  • Subject: Re: NSArrayController using an external NSArray?
  • From: mmalc crawford <email@hidden>
  • Date: Thu, 19 Apr 2007 23:13:54 -0700


On Apr 19, 2007, at 4:35 PM, Todd Heberlein wrote:

I have a model object (for an NSDocument-class app) that includes a number of simple variables (e.g., int) and an NSArray. When I use an NSArrayController to bind to that NSArray object, it picks up the initial objects in the array (seeded in the model's -init method), but any subsequent additions to my model's local NSArray are ignored. It seems that the NSArrayController keeps its own internal NSArray and ignores mine.

<http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/Concepts/Troubleshooting.html >


"My collection controller isn’t displaying the current data"
[...]

You must either implement the indexed accessors for the collection key in your model class





<http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>

"Programmatic modifications to arrays not noticed by table view"



mmalc


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSArrayController using an external NSArray? (From: Todd Heberlein <email@hidden>)

  • Prev by Date: Multiple NSWindows.
  • Next by Date: Re: Multiple NSWindows.
  • Previous by thread: Re: NSArrayController using an external NSArray?
  • Next by thread: NSTableView, NSPopupButtonCell, no selection
  • Index(es):
    • Date
    • Thread