• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
creating a cocoa nsapp event polling callback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: creating a cocoa nsapp event polling callback
      • From: Alexander von Below <email@hidden>
  • Prev by Date: Deploying software requiring libgcc (reloaded)
  • Next by Date: Re: creating a cocoa nsapp event polling callback
  • Previous by thread: Re: Deploying software requiring libgcc (reloaded)
  • Next by thread: Re: creating a cocoa nsapp event polling callback
  • Index(es):
    • Date
    • Thread