On Wed, 21 Jan 2009 14:56:34 -0600 Alex Kac wrote: > Use the delegate I gave you and format it there. UITextField does not > accept formatters. Look at the docs - all the answers are right there. > Here is how I do it: > > Type in the class in the dev doc window. Set it to only show the > iPhone OS 2.2 docs. Contains. Full Text. It shows me immediately the > class reference and the delegates. Usually one or the other will > answer what I'm looking for. If not, sometimes a sample will.
Ok, Ok, I get it. RTFM. LOL. > The Tasks sub-pane in the reference is usually very good. In this case > you see clearly that > textField:shouldChangeCharactersInRange:replacementString: tells you > when a user types in a character and from there you can do what you > need. I'll d/l the newer SDK for 2.2 and have a look. It appears that the Number Pad keyboard type doesn't have a button and requires some work to dismiss - either a giant hidden button catching touch events outside the number pad or overlaying a small "Done" button or similar on the pad itself. Or use the Numbers & Punctuation keyboard and filter out the non-numerics. Or, I suppose I could create a custom view with my own buttons. Thanks for the input. Brooke _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com