NSApp is nil
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