Re: UITextField formatting for IP Address

2009-10-17 Thread Alex Kac
Exactly. I know. I am still working on that, but I don't want to invest too much time in any one method until i know it can solve the issue. But that's my point. I can seem to find any really good way to do this in UITextField. So i am playing around with different methods and posted the cl

Re: UITextField formatting for IP Address

2009-10-16 Thread Andrew Farmer
On 16 Oct 2009, at 17:54, Alex Kac wrote: Here is my code, btw. It works OK, but it still has the issue of moving the cursor to the end. Perhaps there is no way to do this on the iPhone - I just don't want to bang my head for hours. - (void)formatForIP:(UITextField*)textField string:(NSStrin

Re: UITextField formatting for IP Address

2009-10-16 Thread Alex Kac
Here is my code, btw. It works OK, but it still has the issue of moving the cursor to the end. Perhaps there is no way to do this on the iPhone - I just don't want to bang my head for hours. - (void)formatForIP:(UITextField*)textField string:(NSString*)string { long long ip = [[string string