Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: CoreData apps & applicationShouldTerminate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreData apps & applicationShouldTerminate




On May 27, 2005, at 8:23 PM, T Reaves wrote:

I've created two play CoreData apps. I've noticed that applicationShouldTerminate does not automatically get called. I add a windowWillClose method and call it from there. I've also noticed that the Tiles example applicationShouldTerminate is called.
Any idea why it is not being called in my play apps? Is it something to do with using the CoreData project template?


There's no reason why Core Data would interfere with normal application delegation.

Which application template are you using?
The Core Data Application template automatically sets up the application delegate and provides an implementation of
- (NSApplicationTerminateReply)applicationShouldTerminate: (NSApplication *)sender
which certainly is called.
If you're using a document-based application, how have you set up the delegate? Have you either disconnected the delegate outlet in the nib file, or misspelled the delegate method name?


mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >CoreData apps & applicationShouldTerminate (From: T Reaves <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.