Re: Carbon Events vs Cocoa Events
Re: Carbon Events vs Cocoa Events
- Subject: Re: Carbon Events vs Cocoa Events
- From: Bill Bumgarner <email@hidden>
- Date: Mon, 1 Apr 2002 14:54:56 -0500
Easy:
http://www.friday.com/NoisyApp.tgz
The above leads to source that demonstrates how to override the
appropriate methods in NSApplication such that you can capture all event
handling (and, as an added bonus, monitor all target/action invocations).
b.bum
On Monday, April 1, 2002, at 02:02 PM, Charles Srstka wrote:
The question is, how do you have some method or function get called
whenever an event occurs in Cocoa? In Carbon, it's easy, because you can
just do whatever you want with the EventRecord that you get from
WaitNextEvent (in the old model - I don't know much about the new one to
comment on it). How could you make a simple app in Cocoa that logged all
events, for example? I can do that in Carbon, but I have no idea how it
would be done in Cocoa.
b.bum
I ride tandem with the random....
.... things don't run the way I planned them.
_______________________________________________
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.