Re: Should the analyzer catch retained objects returned from createXXX methods?
Re: Should the analyzer catch retained objects returned from createXXX methods?
- Subject: Re: Should the analyzer catch retained objects returned from createXXX methods?
- From: Christiaan Hofman <email@hidden>
- Date: Wed, 17 Aug 2011 23:21:11 +0200
On Aug 17, 2011, at 23:06, Rick Mann wrote:
> I have a method named createFoo, from which I return an object with a retain count of 1. The Xc4 static analyzer is complaining about a potential leak, but I thought it would notice the "create" in the name...
>
> --
> Rick
The keywords indicating object ownership for Cocoa methods are "new", "copy", and "alloc". "Create" is for (Core) functions.
Christiaan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden