>        CFStringRef hexStringRef = CFStringCreateWithFormat( NULL, NULL, 
> CFSTR("%x"), versionValue );   <----- Instruments is hi-lighting this line as 
> an allocation.

It sounds like you found the cause of your persisting string objects
so the details of CFSTR is irrelevant, but to clarify anyway: the
result of CFStringCreateWithFormat() is of course an allocation as
Instruments reported, but the format string that you supplied
CFStringCreateWithFormat() – that is, the CFString whose value is "%x"
– exists statically within your executable (in the __DATA/__cfstring
segment/section) and is therefore not an allocation.
_______________________________________________

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

Reply via email to