• 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
Observing NSArrayController arrangedObjects when there is a fetch predicate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Observing NSArrayController arrangedObjects when there is a fetch predicate


  • Subject: Observing NSArrayController arrangedObjects when there is a fetch predicate
  • From: Andrew Kimpton <email@hidden>
  • Date: Fri, 12 Oct 2007 14:34:54 -0400

I have an NSArrayController (in entity mode - this is a CoreData app), for entities of type 'Recording' which has a fetch predicate set in IB :

status == 2

I can successfully register to observe the arrayControllers arrangedObjects key and during app launch I can see that I have one object in the arrangedObjects array.

During app operation I change the status of an already existing (existed at launch) Recording instance to have a status of 2.

However my observer callback is not called. I had hoped that changing the status of an object so that it now satisfied the predicate on the array controller would cause the observers to be notified. Is there a different key on the Array Controller I should be observing ? Something extra I should do to cause the controller to automatically update and call my observer ?

Thanks

Andrew 8-)



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: Observing NSArrayController arrangedObjects when there is a fetch predicate
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: Using an NSMatrix subclass for a board game view
  • Next by Date: Need advice on how to start processing after an NSDocument closes...
  • Previous by thread: WebView - intercepting data before load
  • Next by thread: Re: Observing NSArrayController arrangedObjects when there is a fetch predicate
  • Index(es):
    • Date
    • Thread