Re: A question of memory management style
Re: A question of memory management style
- Subject: Re: A question of memory management style
- From: Scott Ribe <email@hidden>
- Date: Mon, 18 Jul 2011 07:18:33 -0600
On Jul 17, 2011, at 10:32 PM, John Brownie wrote:
> [HandlerClass createHandlerWith...]
I think your model is correct, but Cocoa convention is that method names beginning with create confer ownership to the caller. If the caller does not need to release the object, the method name should not be createHandlerWIthXXX, but handlerWithXXX.
That might solve your problem. Or not--the analyzer may be looking deeper before getting confused.
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
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