Hey All,

Quick question, what is the best way to determine what kind of cleanup
I need to do with objects that were returned from other objects'
methods, or class methods.

For example, the NSTextField has a method called (NSString
*)stringValue - which returns a string of the value in the text box.
how do I know if that NSString will have a retain count of 1 when
returned to me, or if it was autoreleased before being returned to me.

Beyond just that example, is there any other cheat sheets, or more
documentation in the cocoa docs about those types of concerns?

Thanks.
_______________________________________________

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