Re: App Listener?

2009-01-12 Thread Chunk 1978
wow... very nice! thanks a lot for this, it works great... is there something that could be called (com.apple.HIToolbox.activateMenuTrackingNotification maybe?) that would send a notification when Dashboard exits? On Mon, Jan 12, 2009 at 5:44 PM, Nicolas Seriot wrote: > Le 8 janv. 09 à 07:46, C

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 sid

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

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

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, bu

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 acces

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 References: <63539670901072146w570a8dc1wc13c58b8ecb43...@mail.gmail.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 intereste

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 >References: <63539670901072146w570a8dc1wc13c58b8ecb43...@mail.gmail.com> > > <63539670901072246j1f659c63q33a73b501233f...@mail.gmail.com> > <63539670901072246u6b783883n69fdf7a44fb0a...@mail.g

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 coul

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 wrote: > > 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 exampl

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 sharedWork

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 whenever

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