• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: A question of memory management style
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: A question of memory management style
      • From: Ken Thomases <email@hidden>
References: 
 >A question of memory management style (From: John Brownie <email@hidden>)

  • Prev by Date: Re: Need help debugging this
  • Next by Date: Re: NSTextView won't deallocate
  • Previous by thread: Re: A question of memory management style
  • Next by thread: Re: A question of memory management style
  • Index(es):
    • Date
    • Thread