Re: Detect "delete" in text field
Re: Detect "delete" in text field
- Subject: Re: Detect "delete" in text field
- From: Matt Neuburg <email@hidden>
- Date: Fri, 16 Aug 2002 19:54:22 -0700
On Thu, 15 Aug 2002 09:24:56 -0700, "Tony S. Wu" <email@hidden> said:
>
I have a NSTextField and I'd like to be informed when user pressed "delete"
>
key.
>
>
- (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.
So if that's what you want, return NO. m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.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.