• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Limiting NSTextField to numbers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Limiting NSTextField to numbers?


  • Subject: Re: Limiting NSTextField to numbers?
  • From: "I. Savant" <email@hidden>
  • Date: Wed, 21 Jan 2009 11:07:10 -0500

On Wed, Jan 21, 2009 at 10:40 AM, Brooke Gravitt <email@hidden> wrote:
> How do you prevent an NSTextField from accepting anything aside from
> numbers? Or will I need to code up a solution to remove text from the
> field automatically? Display a dialog & clear the contents?

  See NSNumberFormatter.

--
I.S.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Limiting NSTextField to numbers?
      • From: Brooke Gravitt <email@hidden>
References: 
 >Limiting NSTextField to numbers? (From: Brooke Gravitt <email@hidden>)

  • Prev by Date: Re: Newbie Memory Questions on a Code Fragment
  • Next by Date: Re: Limiting NSTextField to numbers?
  • Previous by thread: Limiting NSTextField to numbers?
  • Next by thread: Re: Limiting NSTextField to numbers?
  • Index(es):
    • Date
    • Thread