In searching for a similar solution myself, I've come across three possibilities:

1) Roll your own keyboard, as others have mentioned.

2) Overlay a decimal button onto the keyboard, like this:
http://billabonger.net/blog/2009/01/add-a-decimal-to-uitextfield-number-pad-keyboard/
* - I have no idea if this uses "legal" methods

3) For currency, you can make your text field add the decimal for the user automatically, like this:
http://davidjhinson.wordpress.com/2008/12/22/simple-formatting-in-a-cocoa-touch-text-edit-field-uitextfield/

#3 is covering my needs at the moment, and I believe is the easiest of the three options, provided it can be used for your situation.

I'm hoping that OS 3.0 adds a new built-in keyboard option.

Brian


On Mar 16, 2009, at 6:57 PM, Jelle De Laender wrote:

Hi,

I was a little bit surprised because the default number pad doesn't contains a dot. I've created an application and the user need to enter decimal numbers.

The default number pad is: http://h4xr.org/ifm4 (see UITextInputTraits Protocol Reference)

There is an empty space at the left-bottom but I can't find anywhere how I can get a number pad that contains a dot. I can't believe that Apple hasn't a number pad that support decimal numbers. This is something basic, isn't?

What is the best way to get a dot on the number pad?

Jelle,


_______________________________________________

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/brianslick%40mac.com

This email sent to briansl...@mac.com

_______________________________________________

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

Reply via email to