• 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
Re: Core data question in multiwindow doc app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core data question in multiwindow doc app


  • Subject: Re: Core data question in multiwindow doc app
  • From: Steven Hamilton <email@hidden>
  • Date: Sat, 28 Jun 2008 18:40:49 +1000



On 28/06/2008, at 2:41 PM, Chris Hanson wrote:

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?

Thanks. That seems to have fixed it. This also gives me a big clue to a similar bug I've to chase next.
_______________________________________________


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


References: 
 >re: Core data question in multiwindow doc app (From: Ben Trumbull <email@hidden>)
 >Re: Core data question in multiwindow doc app (From: Steven Hamilton <email@hidden>)
 >Re: Core data question in multiwindow doc app (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: Why aren't my bindings firing?
  • Next by Date: Re: Style Question
  • Previous by thread: Re: Core data question in multiwindow doc app
  • Next by thread: Layer Backed Views and CoreAnimation neither animate nor stay in place
  • Index(es):
    • Date
    • Thread