Re: Cocoa Event Monitor?
Re: Cocoa Event Monitor?
- Subject: Re: Cocoa Event Monitor?
- From: Colin Wheeler <email@hidden>
- Date: Sat, 7 Feb 2009 21:54:12 -0600
I'd start off with Carbon events. The only other alternative I can think of
is the Cocoa/Carbon Events DTrace scripts and possibly linking against
DTrace (libdtrace.dylib), but to be honest for what your doing compared with
Carbon events that's a lot more trouble than it's worth.
Colin Wheeler
www.cocoasamurai.com
On Sat, Feb 7, 2009 at 9:44 PM, Seth Willits <email@hidden> wrote:
> On Feb 6, 2009, at 11:04 PM, dave d wrote:
>
> http://developer.apple.com/samplecode/EventMonitorTest/index.html
>>
>> This example has the functionality I want, but I'm wondering if there's a
>> more efficient way to accomplish the same thing in Cocoa. Even if there's a
>> Cocoa alternative that performs as well, I'd prefer it, since my app is
>> Cocoa and I'd prefer to keep it pure Cocoa if I can.
>>
>
> There is no Cocoa alternative. You must either use Carbon events (which is
> perfectly fine) or use an event tap which is still not Cocoa.
>
>
> I've done a lot of searching and the only thing that looks promising is
>> NSDistributedNotificationCenter.
>>
>
> It's not the same thing. Notifications are not Events.
>
>
>
> --
> Seth Willits
>
>
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
--
"No fair! You changed the outcome by measuring it!" - Professor Farnsworth
(Futurama)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden