• 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
Registering for NSNotification globally?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Registering for NSNotification globally?


  • Subject: Registering for NSNotification globally?
  • From: Lee Morgan <email@hidden>
  • Date: Tue, 7 Dec 2004 20:53:02 -0500

Is there a way that I can register my app to receive a specific notification when it is posted for _any_ other app?
For example, so I could register for the "NSApplicationDidBecomeActiveNotification" and have my method called whenever the user switches apps (not just to mine), and then find out the name of the newly activated app.


If not then what is the best way to get this kind of notification?

Thanks,
Lee

_______________________________________________
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


  • Follow-Ups:
    • Re: Registering for NSNotification globally?
      • From: "M. Uli Kusterer" <email@hidden>
    • Re: Registering for NSNotification globally?
      • From: m <email@hidden>
  • Prev by Date: Re: delay function
  • Next by Date: Re: delay function
  • Previous by thread: Re: applicationShouldTerminate and asynch handling
  • Next by thread: Re: Registering for NSNotification globally?
  • Index(es):
    • Date
    • Thread