Re: [Q] What causes an NSArrayController to know that an entity was inserted via a different window?
Re: [Q] What causes an NSArrayController to know that an entity was inserted via a different window?
- Subject: Re: [Q] What causes an NSArrayController to know that an entity was inserted via a different window?
- From: mmalc Crawford <email@hidden>
- Date: Tue, 24 Feb 2009 08:50:13 -0800
On Feb 24, 2009, at 7:48 AM, Jon C. Munson II wrote:
I'm NOT one of those people who learn well from reading technical
documentation,
It is truly obnoxious, then, and unhelpful to others, to continue to
make assertions that various issues are not covered in the
documentation when they very clearly are.
As ever, your fundamental question is answered in the documentation:
<http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSArrayController_Class/Reference/Reference.html
>
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(managedObjectContextUpdatedNotification:)
name:NSManagedObjectContextObjectsDidChangeNotification
object:[self managedObjectContext]];
Assuming that goes in init, is this the correct message, etc., to be
listening for?
This is not a message, it's a notification. Notifications are another
of those fundamental aspects of Cocoa development with which someone
starting to use Core Data should be familiar.
See <http://developer.apple.com/documentation/Cocoa/Conceptual/Notifications/Articles/NotificationCenters.html
>
mmalc
_______________________________________________
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