• 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: UITextView symbols
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UITextView symbols


  • Subject: Re: UITextView symbols
  • From: WT <email@hidden>
  • Date: Mon, 29 Jun 2009 02:32:24 +0200

On 28/06/2009, at 9:26 AM, DKJ wrote:


I detect the Return key by checking whether the input string is equal to @"\n". But how would I detect the back-delete key? @"\b" doesn't do it. And I can't seem to find any docs that list these codes.

Have you tried to use the NSString method -initWithCString:encoding: to create a string containing the ASCII character corresponding to the backspace key (I believe it's \x08) ? You'd use NSASCIIStringEncoding as the encoding and then you could use the resulting string to compare against the user input.


I don't know if this will work. I haven't tried it, but I thought I'd mention it anyway.

Wagner
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >UITextView symbols (From: DKJ <email@hidden>)
 >Re: UITextView symbols (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: UITableViewCells
  • Next by Date: Re: GC pros and cons
  • Previous by thread: Re: UITextView symbols
  • Next by thread: Re: UITextView symbols
  • Index(es):
    • Date
    • Thread