Hey, I'd love to see that code if you wouldn't mind sharing.
Many thanks!
On Thu, Jul 10, at 7:39 PM, Александр Даровских wrote:
I've managed to use carbon events to receive those notifications. It
does not require any special privileges and takes just a couple of
lines of code to implement
I've managed to use carbon events to receive those notifications. It
does not require any special privileges and takes just a couple of
lines of code to implement. Apple API's a really nice.
Sorry for the newbie question and thanks for the solution!
On 09.07.2008, at 23:48, Bill Cheeseman wr
On 10 Jul 2008, at 5:16pm, Matt Neuburg wrote:
Copy and paste is pretty easy:
http://www.cocoabuilder.com/archive/message/cocoa/2006/2/4/156003
EventHandlerUPP handlerUPP = NewEventHandlerUPP(appSwitched);
InstallApplicationEventHandler (handlerUPP, 1, &eventType, self,
NULL);
On Wed, 09 Jul 2008 17:47:23 -0400, Bill Cheeseman <[EMAIL PROTECTED]>
said:
>In Leopard, you can make your application process trusted by the
>accessibility API (requires user authentication), using the
>AXMakeProcessTrusted function. Then you don't need to ask your users to
>enable global access
on 2008-07-09 1:58 PM, James Montgomerie at [EMAIL PROTECTED] wrote:
>> You can register to observe the accessibility notifications
>> AXApplicationActivated and AXApplicationDeactivated. These require
>> you to
>> register to observe a specific target application. Therefore, in
>> order to
>> cat
On 9 Jul 2008, at 18:46, Bill Cheeseman wrote:
on 2008-07-09 11:44 AM, Jens Alfke at [EMAIL PROTECTED] wrote:
On 9 Jul '08, at 3:22 AM, Александр Даровских wrote:
Hi,
Is there any way to subscribe to frontmost application change
notification? For example, via NSDistributedNotificationCenter
on 2008-07-09 1:12 PM, Jean-Daniel Dupas at [EMAIL PROTECTED] wrote:
> Yes, so the bad new is that you have to go Carbon to listen front
> switched events, the good new is that this part of Carbon is available
> for 64 bits apps (probably because this is the only public way to do
> this for now).
on 2008-07-09 11:44 AM, Jens Alfke at [EMAIL PROTECTED] wrote:
> On 9 Jul '08, at 3:22 AM, Александр Даровских wrote:
>
>> Hi,
>> Is there any way to subscribe to frontmost application change
>> notification? For example, via NSDistributedNotificationCenter or
>> some other facility? I have manag
Yes, so the bad new is that you have to go Carbon to listen front
switched events, the good new is that this part of Carbon is available
for 64 bits apps (probably because this is the only public way to do
this for now).
Le 9 juil. 08 à 17:49, Matt Gough a écrit :
You can do this (and a
You can do this (and a lot of other stuff not covered by NSWorkspace )
with a CarbonEvent handler on kEventClassApplication,
kEventAppFrontSwitched.
Matt
On 9 Jul 2008, at 5:44pm, Jens Alfke wrote:
On 9 Jul '08, at 3:22 AM, Александр Даровских wrote:
Hi,
Is there any way to subscribe to
On 9 Jul '08, at 3:22 AM, Александр Даровских wrote:
Hi,
Is there any way to subscribe to frontmost application change
notification? For example, via NSDistributedNotificationCenter or
some other facility? I have managed to get process startup and
shutdown notifications, but I cannot get
Hi
Which notifications do you want to receive?
Cheers
Mike
On 9 Jul 2008, at 11:22, Александр Даровских wrote:
Hi,
Is there any way to subscribe to frontmost application change
notification? For example, via NSDistributedNotificationCenter or
some other facility? I have managed to get pro
12 matches
Mail list logo