Re: Core Data and the Application Delegate
Re: Core Data and the Application Delegate
- Subject: Re: Core Data and the Application Delegate
- From: Jason Foreman <email@hidden>
- Date: Fri, 24 Apr 2009 15:40:21 -0500
On Apr 23, 2009, at 7:37 PM, Jon Gordon wrote:
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.
The Core Data Application Xcode template does create an class that is
hooked up as the application delegate. However you are certainly free
to add code to it or replace it with your own delegate, as long as
your delegate also provides the functionality that the generated
template delegate does (setting up Core Data stack, etc). The default
delegate isn't so much "provided by Core Data" as it is "an default
generated for you by Xcode."
Jason
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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