Determining the true type from an NSNumber
Determining the true type from an NSNumber
- Subject: Determining the true type from an NSNumber
- From: Francisco Tolmasky <email@hidden>
- Date: Wed, 1 Jun 2005 15:27:09 -0700
I'm dealing with some NSNumbers in my program, and I would like to
know if there is a way to determine if the number contained should be
interpreted as a float or an int or etc etc etc. Something like if
([[myNumber activeType] isEqualTo: @"float"]) [myNumber
numberWithFloat].
Is this possible? All I can see so far is checking whether the
concrete class is NSCFNumber or NSCFBoolean, but that's about it.
Thanks in advance,
Francisco Tolmasky
email@hidden
www-scf.usc.edu/~tolmasky
_______________________________________________
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