Observing NSArrayController arrangedObjects when there is a fetch predicate
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