objective c - How to print an address in Xcode without a warning -
the code below works ok, address printed, gives 'wrong type' warning. i'm quite new xcode, , expected uncomplaining conversion of pointer unsigned.
{nslog(@"released <%@> @ %x, retain count %lu", newentry, newentry, [newentry retaincount]);}
correct format specifier pointer address %p:
nslog(@"released <%@> @ %p, retain count %lu", newentry, newentry, [newentry retaincount]);
Comments
Post a Comment