creating a cocoa nsapp event polling callback
creating a cocoa nsapp event polling callback
- Subject: creating a cocoa nsapp event polling callback
- From: Tobias Ford <email@hidden>
- Date: Wed, 26 Sep 2007 02:38:14 -0500
I'd like to give my NSApp a callback function that will process
specific events such as keys and mouse events before they have the
chance to be processed by the Cocoa frameworks. Anything that I
don't process will then be sent back to NSApplication for standard
processing.
I think that my only option is to overload the run method. I don't
really want to do this due to future maintenance troubles. What I'm
looking for is some method that is called pre-standard-event
processing that I can overload poll my events, send unused events
back to the app, and then call an update function from. I want
something that isn't likely to break with an os update and is public.
I guess I'm looking something like this:
- (void)publicMethodCalledBeforePollingNSApplicationsNextEventsPerFrame;
Is there anything like this?
Thanks.
-------------------
Tobias Ford...
tobias1482 'at' mac.com
tford 'at' spacetimestudios.com
-------------------
Sr Programmer @ space time studios for a generic space game mmo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden