On Jun 28, 2010, at 2:49 AM, Manfred Schwind <[email protected]> wrote: >> However, I can't figure out how to determine if the NSNumber was initialized >> with an int or float. > > > NSNumber *myNumber = ...; > CFNumberIsFloatType((CFNumberRef)myNumber);
Again, no. This tells you if CFNumber has decided to store the number as a float. It does *not* tell you if the number was originally created from a float, and analogues do not exist for other scalar types. I posit that if you're trying to do this at all, you are doing it wrong. --Kyle Sluder_______________________________________________ Cocoa-dev mailing list ([email protected]) 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 [email protected]
