Re: Registering for NSNotification globally?
Re: Registering for NSNotification globally?
- Subject: Re: Registering for NSNotification globally?
- From: Peter Maurer <email@hidden>
- Date: Mon, 13 Dec 2004 18:26:41 +0100
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.
In this particular case, it may actually be the exception. I'm not
sure anymore whether this was Carbon or Cocoa, but I think if you
register for this notification and pass NIL as the object, you will
even get notifications for other applications.
NSApplicationDidBecomeActiveNotification is a NSWorkspace
notifification, as far as I remember. That might explain why other
applications can "see" it.
Cheers,
Peter.
_______________________________________________
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