On Mon, Jun 28, 2010 at 6:06 AM, Kyle Sluder <kyle.slu...@gmail.com> wrote: > 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.
Tell you what, I'm gonna stop posting to the list within the 10 minutes after I first wake up. Then maybe I wouldn't have overlooked CFNumberGetType. But the documentation for that function is very clear that you cannot use this to do what the OP asked for: "The type specified in the call to CFNumberCreate is not necessarily preserved when a new CFNumber object is created—it uses whatever internal storage type the creation function deems appropriate." --Kyle Sluder _______________________________________________ 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