In the Using Autorelease section p. 67, the text says “NSString, like many other classes in the iOS SDK, includes convenience methods that return autoreleased objects. . .” The Apple documentation for stringWithFormat reads: “Returns a string created by using a given format string as a template into which the remaining argument values are substituted.”
My question is, how would one know that the string that is returned by stringWithFormat is an autoreleased string? Are all returns from convenience methods autoreleased? Or are certain convenience method returns autoreleased and others not? If the latter, how would I find out if the return is autoreleased or not as it seems the documentation does not include that info? Am I just missing something?