Re: Core data question in multiwindow doc app
Re: Core data question in multiwindow doc app
- Subject: Re: Core data question in multiwindow doc app
- From: Chris Hanson <email@hidden>
- Date: Fri, 27 Jun 2008 21:41:13 -0700
On Jun 27, 2008, at 7:25 PM, Steven Hamilton wrote:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(buildSourceList)
name:@"NSManagedObjectContextObjectsDidChangeNotification" object:
[self.document managedObjectContext]];
Notification names should always use the global variables declared for
them, not a constant string.
There is never any guarantee that the value of a notification name is
identical to its name.
Whether this is your issue, I don't know. How did you create your
document's window controllers and ensure that it knows about them?
-- Chris
_______________________________________________
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