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 sh
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
forKeyPath:@"activeAp