Re: UITextView symbols

2009-06-28 Thread Graham Cox
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. Surely it would make more sense to trap these keys

Re: UITextView symbols

2009-06-28 Thread DKJ
On 28-Jun-09, at 5:13 , Graham Cox wrote: Surely it would make more sense to trap these keys on the input side - in other words override the event handlers that get called to handle these keys before they process the text data. I don't know how to do this. As far as I can tell, UIEvent

Re: UITextView symbols

2009-06-28 Thread Andrew Farmer
On 27 Jun 2009, at 16:26, DKJ wrote: I'm using this method: textView:shouldChangeTextInRange:replacementText: to let users put special symbols into a UITextView. 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

UITextView symbols

2009-06-27 Thread DKJ
I'm using this method: textView:shouldChangeTextInRange:replacementText: to let users put special symbols into a UITextView. 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

Re: UITextView symbols

2009-06-27 Thread DKJ
On 27-Jun-09, at 16:26 , DKJ wrote: I'm using this method: textView:shouldChangeTextInRange:replacementText: to let users put special symbols into a UITextView. 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