The docs say autoreleased as he already said which may not always be true.
Devon
Filip van der Meeren wrote:
I quote: "For objects that never get released, this method should return
UINT_MAX". So where do you see your bug ?
Filip van der Meeren
http://www.sourceforge.net/projects/xlinterpreter
On 21 Nov 2008, at 16:44, mmalcolm crawford wrote:
I do, and I already filed a bug.
Cocoa Fundamentals Guide states:
Class Factory Methods
"Class factory methods are implemented by a class as a convenience for
clients. They combine allocation and initialization in one step and
return the created object autoreleased. These methods are of the form
+ (type)className... (where className excludes any prefix)."
<http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaObjects/chapter_3_section_6.html>
It should probably not explicitly state "autoreleased" — it should
simply state that — in accordance with standard memory management
rules, in a reference counted environment — the receiver does not own
the returned object.
mmalc
_______________________________________________
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/dferns%40devonferns.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
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 [EMAIL PROTECTED]