• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Framework and NSApplication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Framework and NSApplication
      • From: Ken Worley <email@hidden>
  • Prev by Date: Re: Does NSTextField conform to NSEditor (commitEditing specifically)?
  • Next by Date: Re: Modules in Objective-C like e.g. OSGi-Bundles in Java
  • Previous by thread: Re: Does NSTextField conform to NSEditor (commitEditing specifically)?
  • Next by thread: Re: Framework and NSApplication
  • Index(es):
    • Date
    • Thread