• 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
Fetch Requests and NSDecimalNumbers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fetch Requests and NSDecimalNumbers


  • Subject: Fetch Requests and NSDecimalNumbers
  • From: Steve Cronin <email@hidden>
  • Date: Thu, 23 Feb 2006 13:05:48 -0600

Folks;

I have utilized NSDecimalNumbers throughout my Core Data model as I am under the impression that this is the best basis for tracking monetary values. I have further utilized the "...decimalNumberBy" mechanisms for all internal arithmetic.

Now I need to formulate fetch requests and am a bit bamboozled by use of predicate comparison operators and the NSDecimalNumber's compare method...

If totalCost is an attribute of type NSDecimalNumber, how do I best, and most efficiently, express a predicate that implements:

totalCost > $USER_SUPPLIED_VARIABLE


Is there some documentation I'm not seeing.

Thanks!
Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Fetch Requests and NSDecimalNumbers
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Working with modem
  • Next by Date: Re: NSTableView and background color
  • Previous by thread: Re: Working with modem
  • Next by thread: Re: Fetch Requests and NSDecimalNumbers
  • Index(es):
    • Date
    • Thread