More re: Carbon Events vs Cocoa Events
More re: Carbon Events vs Cocoa Events
- Subject: More re: Carbon Events vs Cocoa Events
- From: Charles Srstka <email@hidden>
- Date: Mon, 1 Apr 2002 15:15:29 -0600
Well, I just tried it, and unfortunately, it doesn't seem to catch all
events. I downloaded the NoisyApp example, and it doesn't seem to log
Apple Events. If I send the AppleScript 'tell application "NoisyApp" to
beep' it will send the message, and it will beep, but NoisyApp will not
log the event. My little Carbon test app will log the event if I tell it
to beep...
Any way to catch every event, including low-level events, high-level
events, and anything in between?
Thanks,
Charles
On Monday, April 1, 2002, at 02:54 PM, Charles Srstka wrote:
>
Wow, thanks for all the quick replies! I'll have a look at sendEvent:.
>
>
Thanks again,
>
Charles
>
>
On Monday, April 1, 2002, at 01:36 PM, Ondra Cada wrote:
>
>
> On Monday, April 1, 2002, at 09:02 , Charles Srstka wrote:
>
>
>
>> How could you make a simple app in Cocoa that logged all events, for
>
>> example?
>
>
>
> It's as simple as using your own NSApplication subclass, overriding
>
> sendEvent:. See NSApplication.html for more.
>
>
>
> I don't know the current Carbon event model that well, but I used to
>
> knew Mac OS 6/7 event model (of which I understand the Carbon is a
>
> direct descendant, just like Cocoa is a direct descendant of NeXTStep
>
> API) well since I wrote applications for Mac OS in those days, and I
>
> can assure you that there was not one sole thing which might be easier
>
> there than in Cocoa.
>
> ---
>
> Ondra Cada
>
> OCSoftware: email@hidden http://www.ocs.cz
>
> 2K Development: email@hidden http://www.2kdevelopment.cz
>
> private email@hidden http://www.ocs.cz/oc
>
> _______________________________________________
>
> cocoa-dev mailing list | email@hidden
>
> Help/Unsubscribe/Archives:
>
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
> Do not post admin requests to the list. They will be ignored.
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.