listening for changes to active application

2008-10-14 Thread Robert Nikander
Hi, How can I be notified when the foreground application changes? I found activeApplication in NSWorkspace. Is there a way to observe changes to that property? I tried the following, which doesn't seem to work... [[NSWorkspace sharedWorkspace] addObserver:obs

Re: listening for changes to active application

2008-10-14 Thread Jason Coco
On Oct 14, 2008, at 11:58 , Robert Nikander wrote: Hi, How can I be notified when the foreground application changes? I found activeApplication in NSWorkspace. Is there a way to observe changes to that property? I tried the following, which doesn't seem to work... [[NSWorkspace