Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stringWithFormat



Ron Green wrote:


stringWithFormat: returns an NSString that is autoreleased. I know this because I read it in Hillegasses book. But since this does not seem to be covered in the documentation, if I had not read it in a book, how would I discover that the NSString was autoreleased?
_______________________________________________



because it's covered in the documentation.

http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Tasks/MemoryManagementRules.html

and pages linked from there.

Which has reminded me that copy is in there and now I think I have a memory leak in something I've been writing. Thanks!

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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/email@hidden

This email sent to email@hidden
References: 
 >stringWithFormat (From: Ron Green <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.