On Mon, May 18, 2009 at 3:54 PM, Kevin Gessner <ke...@kevingessner.com> wrote:
> Look into creating a CGEventTap - > http://developer.apple.com/documentation/Carbon/Reference/QuartzEventServicesRef/Reference/reference.html. > You'll want your callback to look for F-key events, and return NULL to "eat" > the event. Nah ... if he only wants to listen for the function keys when the app is active, creating an NSApplication subclass and overriding -sendEvent: is sufficient. If the key code / flags is what you want, dispatch the message however you wish, otherwise call super. It depends, though, what behavior you're looking for. In the case of laptops, the function keys control media playback, volume, display and keyboard brightness, and a number of other things. Consider that when dealing with function keys. -- I.S. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com