• 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
How to create an NSDecimal?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to create an NSDecimal?


  • Subject: How to create an NSDecimal?
  • From: WT <email@hidden>
  • Date: Sat, 14 Mar 2009 17:28:55 +0100

Hello all,

I was reading the "Number and Value Programming Topics for Cocoa" section about decimal numbers and now I'm confused. If I want to use the C interface rather than the NSDecimalNumber class, how do I "instantiate" an NSDecimal struct? According to the "Foundation Data Types Reference", the fields of NSDecimal are private. I couldn't find any function that takes the necessary data and returns an NSDecimal, so how do I create an NSDecimal?

By the way, I searched the archives and found out that someone else asked the same question back in 2001 (http://lists.apple.com/archives/cocoa-dev/2001/Sep/msg00041.html ) but the ensuing discussion went somewhere else and the original question never got answered.

Thanks in advance.
Wagner
_______________________________________________

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: How to create an NSDecimal?
      • From: Ashley Clark <email@hidden>
  • Prev by Date: Re: Performance problem with GC enabled
  • Next by Date: Re: Performance problem with GC enabled
  • Previous by thread: Re: Any interest in an article comparing and contrasting Cocoa with MSManaged C++ with CLI
  • Next by thread: Re: How to create an NSDecimal?
  • Index(es):
    • Date
    • Thread