Re: UITextView symbols
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