On Jan 18, 2009, at 1:06 AM, Rob Keniger wrote:

On 18/01/2009, at 11:18 AM, Darren Stuart wrote:

Hi there, sorry for the real noobish question but I can't figure
this out or find an answer.

I have a variable called myMoney and its a NSDecimalNumber and I
want to set init it with the value of 23.30.

NSDecimalNumber *myMoney =  [[NSDecimalNumber alloc] init];

If this is the wrong place to post this sort of question please can
someone point to such a place.

Kind Regards

Darren

You can't find an answer - have you had a look at the documentation?
It's right there.

http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSDecimalNumber_Class/Reference/Reference.html

Sometimes to the newbie it may seem astounding that experienced Cocoa programmers can snap back with specific references. These are not really that difficult to find. Might I suggest an address to keep in mind for searching for information:

        http://developer.apple.com/cocoa

Then use the search box in the upper right.

In regard to the OP's query, I entered "creating a decimal number" The lead result is the NSDecimalNumberHandler Class Reference, as a PDF, as documented for iPhone, and as having the link Rob reported above.



_______________________________________________

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