Core Data and the Application Delegate
Core Data and the Application Delegate
- Subject: Core Data and the Application Delegate
- From: Jon Gordon <email@hidden>
- Date: Thu, 23 Apr 2009 20:37:09 -0400
I'm having trouble understanding how to do certain things with the
application delegate in a document-based application that uses Core
Data. Or maybe I'm understanding things perfectly well, but I don't
like the logical conclusion. But I digress.
In a normal (i.e., non-Core Data) document-based application, as I
understand it, one can modify certain functions by providing a
delegate to the instance of NSApplication. For example, to keep the
application from opening a blank document at launch, I can have a
delegate that implements applicationShouldOpenUntitledFile: and always
returns NO.
But I understand (I think) also that, in a Core Data document-based
application, the application delegate is set to one provided by Core
Data. And in such cases, providing my own delegate breaks Core Data
functionality that I'd otherwise get for free.
Am I right about this? If so, what's the best way to make changes
(like not opening the blank document at startup) that would, absent
Core Data, be made by providing an application delegate? And where's
the best documentation for this?
Thanks,
-Jon
_______________________________________________
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