• 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: Delete Character keydown event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Delete Character keydown event


  • Subject: Re: Delete Character keydown event
  • From: nick briggs <email@hidden>
  • Date: Tue, 15 Nov 2005 09:23:11 +0000

Ken

<-
How can I check for a the delete key being depressed?
->


This works for me

    NSString *chars = [event characters];
    int i, l = [chars length];
    for(i=0; i<l; i++){
        unichar c = [chars characterAtIndex:i];
        if(c == 127)
        {
            // erase one object
        }
   }

Nick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: How to Draw View back ground like iCal Task background color
  • Next by Date: Re: How to see the arguments of methods from the stack trace during debugging
  • Previous by thread: Re: Delete Character keydown event
  • Next by thread: Maximum file name length?
  • Index(es):
    • Date
    • Thread