• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: <no subject>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Detect "delete" in text field
  • Next by Date: Re: .pax?
  • Previous by thread: Detect "delete" in text field
  • Next by thread: How to callback into a Obj-C object from C?
  • Index(es):
    • Date
    • Thread