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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -