• 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
NSPredicateEditor and decimal numbers with fractions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPredicateEditor and decimal numbers with fractions


  • Subject: NSPredicateEditor and decimal numbers with fractions
  • From: Ruotger Skupin <email@hidden>
  • Date: Wed, 18 Jun 2008 18:07:21 +0200

Hi,

I've set up a NSPredicateEditor with a template that forms for example a predicate like: [Gross Value] [is] [ ]

the format of the text field is set as Number in Interface Builder. If I input 32.99 into the field I get a predicate like this:

grossAmount.amount == 32

Obviously the number is rounded off at the decimal point. Since this is a currency amount, I need the decimal fraction ("the cents").

Any Advice?

Ruotger

_______________________________________________

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


  • Prev by Date: Re: Problem with NSWindow setFrame
  • Next by Date: Converting HID keyboards usages to characters ?
  • Previous by thread: Re: Problem with NSWindow setFrame
  • Next by thread: NSPredicateEditor and decimal numbers with fractions
  • Index(es):
    • Date
    • Thread