• 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: Memory Management question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory Management question


  • Subject: Re: Memory Management question
  • From: Robert Marini <email@hidden>
  • Date: Fri, 26 Dec 2008 14:10:09 -0500

Yes, you can.
This simply leads to voodoo programming where retains and releases are sprinkled throughout your code as a substitute for understanding. In addition to deferring absorbtion of the Basic Rules, it's almost certainly going to lead to a problem at some stage when you retain and release rather than using accessor methods (see <http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmPractical.html#//apple_ref/doc/uid/TP40004447-SW4 >).

Indeed, many would find their lives a great deal easier if they went through accessor methods, but they don't. It's the same issue that arises when developers post questions who's answers would be self- evident if they were adhering to MVC but are fairly complicated given the lack of clarity in the code's design. The takeaway from that should be to use properties but people are stubborn (though I would maintain that overkill retaining/releasing, so long as they are balanced, is very unlikely to lead to problems - just ugly, dirty, semi-retarded code that you can look back on and cringe at in a few years).


-rob.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

References: 
 >Re: Memory Management question (From: Scott Wilson <email@hidden>)
 >Re: Memory Management question (From: Robert Marini <email@hidden>)
 >Re: Memory Management question (From: "Michael Ash" <email@hidden>)
 >Re: Memory Management question (From: Robert Marini <email@hidden>)
 >Re: Memory Management question (From: mmalc Crawford <email@hidden>)

  • Prev by Date: Re: Memory Management question
  • Next by Date: Re: Messaging framework
  • Previous by thread: Re: Memory Management question
  • Next by thread: Re: Memory Management question
  • Index(es):
    • Date
    • Thread