Re: <no subject>
Re: <no subject>
- Subject: Re: <no subject>
- From: Jonathan Chaffer <email@hidden>
- Date: Thu, 15 Aug 2002 12:25:27 -0400
On Thursday, August 15, 2002, at 12:15 PM, Tony S. Wu wrote:
I have a NSTextField and I'd like to be informed when user pressed
"delete"
key.
So I use this delegate method (thanks to the help before):
- (BOOL)control:(NSControl *)control
textView:(NSTextView *)textView
doCommandBySelector:(SEL)commandSelector
{
if (commandSelector == @selector(deleteBackward:))
NSLog(@"Blah!!");
return YES;
}
I did see the log, but the problem is the delete key isn't processed
anymore.
Try returning NO.
--
Jonathan Chaffer
Applications Developer, structure:interactive
(616) 364-7423
http://www.structureinteractive.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| ><no subject> (From: "Tony S. Wu" <email@hidden>) |