Re: [AD] OS X keyboard

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2011-01-13, Peter Hull <peterhull90@xxxxxxxxxx> wrote:
> I've been looking at
> http://developer.apple.com/library/mac/#documentation/cocoa/conceptual/EventOverview/HandlingKeyEvents/HandlingKeyEvents.html
> Maybe a call to NSResponder's -interpretKeyEvents: is needed? Has
> anyone managed to google any example code?

http://www.google.com/codesearch?hl=en&lr=&q=interpretKeyEvents&sbtn=Search
suggests something like:

    [self interpretKeyEvents:[NSArray arrayWithObject:theEvent]];

after which you can just implement the insertText: method?

Peter




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/