Re: Objective-C Question
Re: Objective-C Question
- Subject: Re: Objective-C Question
- From: Markus Spoettl <email@hidden>
- Date: Wed, 13 Mar 2013 10:24:55 +0100
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 <email@hidden> 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 (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:
This email sent to email@hidden