• 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
NSApp is nil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSApp is nil


  • Subject: NSApp is nil
  • From: Ben Lachman <email@hidden>
  • Date: Tue, 27 Nov 2007 01:06:19 -0500

Several time now I've run into NSApp being nil in relation to coredata--particularly in core data awakeFrom methods. If I call [NSApplication sharedApplication], I get a valid NSApplication object. Before I go through all my managed object subclasses replacing NSApp with a sharedApplication call I'm wondering why this is. Does anyone have any idea why NSApp wouldn't be valid in this context? Isn't NSApp supposed to be global and valid after the first call to sharedApplication?

Thanks,

->Ben

--
"When a stupid man is doing something he is ashamed of, he always declares that it is his duty."
- George Bernard Shaw



_______________________________________________

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


  • Prev by Date: [ANN] Core Data debug library available
  • Next by Date: Sound using QTKit "cracks up" randomly
  • Previous by thread: Re: [ANN] Core Data debug library available
  • Next by thread: Sound using QTKit "cracks up" randomly
  • Index(es):
    • Date
    • Thread