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"
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 -init
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 doe
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 ke
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"
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