problem with floats/floatForKey
problem with floats/floatForKey
- Subject: problem with floats/floatForKey
- From: Duncan Campbell <email@hidden>
- Date: Thu, 21 Apr 2005 16:32:31 +1000
Hey folks.
If i do the following:
NSLog(@"direct from Defaults: %f",[defaults floatForKey:@"myFloatKey"]);
I get the value I want.
However, if I do this:
float myVar = [defaults floatForKey:@"myFloatKey"];
NSLog(@"after assignment: %f",myVar);
I get a very funky value for "myVar".
What am I doing wrong here?
Cheers.
---------------------------------------------------------------
Duncan Campbell
http://www.duncanandsarah.com/duncan
---------------------------------------------------------------
_______________________________________________
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