On 3/11/08 8:47 PM, Kevin Dixon said:

>I have implemented -keyDown as such
>
>if([theEvent type] == NSKeyDown) {
>       if([theEvent keyCode] == 51) {
>               //process 'delete' press
>       }
>}
>
>to catch the pressing of delete on the NSTableView. This works, but
>reminds me of BASIC...Is there a better way to do this, to make sure I'm
>getting the delete key, say even on international keyboards?

See NSResponder's deleteBackward: method and docs.

--
____________________________________________________________
Sean McBride, B. Eng                 [EMAIL PROTECTED]
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [EMAIL PROTECTED]

Reply via email to