On Apr 29, 2010, at 5:38 PM, Jens Alfke wrote: > - (void) keyDown: (NSEvent*)event { > event.characters; > event.isARepeat; > }
I don’t think that will do the special characters that you can type via the Option key. What you want to do is to make your text view conform to the NSTextInputClient protocol, which is documented here: http://developer.apple.com/mac/library/documentation/cocoa/reference/NSTextInputClient_Protocol/Reference/Reference.html This will give you not only the option key, but also make all the standard Mac OS text editing shortcuts work, as well as any custom key bindings the user has defined. It’s pretty nifty, and will make your users like your app a lot better. Charles_______________________________________________ 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