Re: App Listener?

2009-01-12 Thread Nicolas Seriot
Le 8 janv. 09 à 07:46, Chunk 1978 a écrit : does this work with Dashboard? it seems that dashboard is a background application that's always open... It seems that the notification com.apple.HIToolbox.cancelMenuTrackingNotification is sent when Dashboard appears. So while it may have

Re: App Listener?

2009-01-08 Thread Jerry Krinock
On 2009 Jan, 07, at 22:46, Chunk 1978 wrote: does this work with Dashboard? it seems that dashboard is a background application that's always open... Well, obviously it does not. You'd need a NSWorkspaceDidActivateApplicationNotification, but it looks like there is no such thing. You

Re: App Listener?

2009-01-08 Thread Rainer Brockerhoff
At 05:55 -0800 08/01/09, cocoa-dev-requ...@lists.apple.com wrote: From: Jerry Krinock je...@ieee.org References: 63539670901072146w570a8dc1wc13c58b8ecb43...@mail.gmail.com f9d125f1-0873-4967-893a-20e851278...@codeferous.com 63539670901072246j1f659c63q33a73b501233f...@mail.gmail.com

Re: App Listener?

2009-01-08 Thread James Montgomerie
On 8 Jan 2009, at 14:14, Rainer Brockerhoff wrote: Today, the only solution seems to be to install a Carbon Event handler for the {kEventClassApplication, kEventAppFrontSwitched} event. Even if such a NSWorkspace notification were to appear in a future version of Mac OS X, I'd be

Re: App Listener?

2009-01-08 Thread Jonathan Hendry
On Jan 8, 2009, at 09:14 AM, Rainer Brockerhoff wrote: At 05:55 -0800 08/01/09, cocoa-dev-requ...@lists.apple.com wrote: From: Jerry Krinock je...@ieee.org References: 63539670901072146w570a8dc1wc13c58b8ecb43...@mail.gmail.com f9d125f1-0873-4967-893a-20e851278...@codeferous.com

Re: App Listener?

2009-01-08 Thread Rainer Brockerhoff
At 15:09 + 08/01/09, James Montgomerie wrote: On 8 Jan 2009, at 14:14, Rainer Brockerhoff wrote: Today, the only solution seems to be to install a Carbon Event handler for the {kEventClassApplication, kEventAppFrontSwitched} event. If you don't mind asking your users to switch on

Re: App Listener?

2009-01-08 Thread Ken Thomases
On Jan 8, 2009, at 7:39 AM, Jerry Krinock wrote: On 2009 Jan, 07, at 22:46, Chunk 1978 wrote: does this work with Dashboard? it seems that dashboard is a background application that's always open... Well, obviously it does not. You'd need a NSWorkspaceDidActivateApplicationNotification,

Re: App Listener

2009-01-08 Thread j.varela
On 2009 Jan, 07, at 22:46, Chunk 1978 wrote: does this work with Dashboard? it seems that dashboard is a background application that's always open... Well, obviously it does not. You'd need a NSWorkspaceDidActivateApplicationNotification, but it looks like there is no such thing. You could

Re: App Listener

2009-01-08 Thread j.varela
On 2009 Jan, 07, at 22:46, Chunk 1978 wrote: does this work with Dashboard? it seems that dashboard is a background application that's always open... Well, obviously it does not. You'd need a NSWorkspaceDidActivateApplicationNotification, but it looks like there is no such thing. You could

App Listener?

2009-01-07 Thread Chunk 1978
is it possible to set up an NSNotification to listen for launched apps? for example, an running app would do something if Safari is opened, or if Dashboard is activated? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: App Listener?

2009-01-07 Thread Jerry Krinock
On 2009 Jan, 07, at 21:46, Chunk 1978 wrote: is it possible to set up an NSNotification to listen for launched apps? for example, an running app would do something if Safari is opened, or if Dashboard is activated? NSWorkspaceDidLaunchApplicationNotification will tell you about it

Re: App Listener?

2009-01-07 Thread David LeBer
On 8-Jan-09, at 12:46 AM, Chunk 1978 wrote: is it possible to set up an NSNotification to listen for launched apps? for example, an running app would do something if Safari is opened, or if Dashboard is activated? Something like this? NSNotificationCenter * center = [[NSWorkspace

Fwd: App Listener?

2009-01-07 Thread Chunk 1978
does this work with Dashboard? it seems that dashboard is a background application that's always open... On Thu, Jan 8, 2009 at 12:58 AM, David LeBer dleber_...@codeferous.com wrote: On 8-Jan-09, at 12:46 AM, Chunk 1978 wrote: is it possible to set up an NSNotification to listen for launched