On 3/13/13 9:36 AM, Dave wrote:

On 12 Mar 2013, at 21:34, Graham Cox wrote:


On 13/03/2013, at 6:53 AM, Dave <d...@looktowindward.com> wrote:

If that is the case, then how do you signal to the compiler/analyzer that you
are returning a retained object?

In general you shouldn't return a retained object (unless it's temporarily
retained and will be autoreleased of course)

Why? Where does it say this?

https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmRules.html

And Autorelease is evil and should never be used if it can be avoided!

Nonsense.

Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to