One Quickie


Reacting to the delete key (NSView->General)
Look for NSDeleteCharacter in the event's character string:
- (void) keyDown: (NSEvent *) event
{
    NSString *chars = [event characters];
    unichar character = [chars characterAtIndex: 0];

    if (character == NSDeleteCharacter) {
        NSLog (@"Delete!");
    }
} // keyDown



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com