• 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: Modify contents programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrayController: Modify contents programmatically


  • Subject: NSArrayController: Modify contents programmatically
  • From: Felix Franz <email@hidden>
  • Date: Mon, 21 Mar 2005 14:06:10 +0100

Hi all,

I want to change the contents of an array that is managed by an NSArrayController via bindings. Does the Controller recognize insertions and removals on the array properly, even if they are done directly on the array bypassing the NSArrayController (without using NSArrayController>>addObject) ?

I use a similar setup in an application. The NSArrayController is used to fill a NSTableView. The content array is changed from the outside. The newly inserted element only shows up, when the TableView is resorted by clicking the column header. This is strange, since if I register an observer for the array using the addObserver:forKeyPath:options:context:-selector, I get the right change results
in observeValueForKeyPath:ofObject:change:context:. The NSArrayController should get these changes too, doesn't it?



Thanks in advance

felix







_______________________________________________
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: Modify contents programmatically
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: Binding to an array of dictionaries as a to-many
  • Next by Date: Re: NSArrayController: Modify contents programmatically
  • Previous by thread: QT Streaming Question
  • Next by thread: Re: NSArrayController: Modify contents programmatically
  • Index(es):
    • Date
    • Thread