Skip navigation.
 
mlHow to observe Core Data add/remove actions?
FROM : Arthur C.
DATE : Tue Nov 13 23:29:13 2007

I have a set of Core Data objects, which consist of properties that need to be communicated to other (non-Core Data) parts of the application. In fact, the properties of the currently selected object are 'active' and need to be communicated.
I currently observe the corresponding array controller for the key @"selection.myProperty" to do that.
When an object is added or removed, I observe "arrangedObjects.@count", which is indeed triggered on add/remove actions. However, when I read the selected properties, I still get the 'old' selected properties, not the ones from the new object.

So, what is the correct way to do this?


Thanks in advance,
Arthur C.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/_______________________________________________

Cocoa-dev mailing list (<email_removed>)

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:
http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>

This email sent to <email_removed>

Related mailsAuthorDate
mlHow to observe Core Data add/remove actions? Arthur C. Nov 13, 23:29
mlRe: How to observe Core Data add/remove actions? Joshua Emmons Nov 14, 02:34
mlRE: How to observe Core Data add/remove actions? Arthur C. Nov 15, 00:03
mlRe: How to observe Core Data add/remove actions? Joshua Emmons Nov 15, 19:14