Re: Carbon Events vs Cocoa Events
Re: Carbon Events vs Cocoa Events
- Subject: Re: Carbon Events vs Cocoa Events
- From: Brian Webster <email@hidden>
- Date: Mon, 1 Apr 2002 14:17:55 -0600
On Monday, April 1, 2002, at 02:02 PM, cocoa-dev-
email@hidden 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.
You can subclass NSApplication and override the sendEvent: method.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.