FROM : Sean McBride
DATE : Wed Mar 12 15:43:49 2008
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_removed>
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
DATE : Wed Mar 12 15:43:49 2008
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_removed>
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
| Related mails | Author | Date |
|---|---|---|
| Kevin Dixon | Mar 11, 23:03 | |
| j o a r | Mar 11, 23:12 | |
| Quincey Morris | Mar 12, 00:00 | |
| Kevin Dixon | Mar 12, 01:47 | |
| j o a r | Mar 12, 02:00 | |
| Sean McBride | Mar 12, 15:43 |






Cocoa mail archive

