C how to print CFNumberRef

806 Views Asked by At

Quick question im wondering how I could print CFNumberRef. Im currently working on a program that comunicate with mobiledevice framework (Apple) that will print the ecid of a iDevice. And I currently have one problem, I read here link that to get the ECID you have "Call the AMDeviceCopyValue function in the MobileDevice Framework " and after some help here earlier ( link to last post ) now I have one last question, on theiphonewiki it say that "It returns the ECID as a CFNumber(kCFNumberSInt64Type) object. ", and the question I now have is how to a print to the console CFNumber(kCFNumberSInt64Type) object??? (im working in c)

1

There are 1 best solutions below

1
On BEST ANSWER

You can use CFShow() to print core foundation types to the console.

CFShow(yourCFNumberInstance);

You can also use NSLog() if you want to format things:

NSLog(CFSTR("Number is %@"), yourCFNumberInstance);