Framework and NSApplication
Framework and NSApplication
- Subject: Framework and NSApplication
- From: "Kiel Gillard" <email@hidden>
- Date: Fri, 8 Aug 2008 09:55:59 +1000
@synthesize greeting;
I'm writing a Cocoa framework that links with an old Carbon application. The
Carbon application indirectly interacts with it through a wrapper framework.
Within the Cocoa framework, I want to observe the
NSApplicationWillTerminateNotification notification, posted by the
NSApplication to the default NSNotificationCenter. However, my method does
not seem to be invoked.
Figuring there was some incompatibility with NSApplication and the fact the
framework is being dynamically linked to an old Carbon application, I
installed a Carbon event handler for the application quitting. The callback
does not seem be invoked by the Carbon Event Manager.
Any suggestions as to how I could code the framework to notice when the
application it's linked to is quitting?
Thanks,
Kiel
PS: Sorry, I couldn't resist the nerdy salutation ;-)
_______________________________________________
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