• 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: Garbage collection - was Beginner with Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Garbage collection - was Beginner with Cocoa


  • Subject: Re: Garbage collection - was Beginner with Cocoa
  • From: Scott Ribe <email@hidden>
  • Date: Tue, 25 Mar 2008 15:06:00 -0600
  • Thread-topic: Garbage collection - was Beginner with Cocoa

> Aside from that. Are there tutorials or some such for these Cocoa
> Release ideals or will I cross them when I read the pdf ?

There's a *very* simple set of rules to follow regarding retain/release.
Newbies sometimes make it hard on themselves by doing extra work, rather
than trying to follow the rules. Of course ultimately you want to understand
the rules, but they're simple enough that you can write correct code before
you even get to that point. If you just follow the rules, rather than
assuming that there's some mysterious complexity omitted and trying to
squeeze in a few extra retains/releases here and there in order to
compensate for the documentation's non-existent deficiencies ;-) That's a
little exaggerated. What we see most typically with newbies is neglecting by
accident to follow the rules at some point, then trying to peek at retain
counts to debug it, then getting themselves confused and adding
spurious/incorrect memory management code.


--
Scott Ribe
email@hidden
http://www.killerbytes.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: Garbage collection - was Beginner with Cocoa
      • From: Jack Repenning <email@hidden>
References: 
 >Re: Garbage collection - was Beginner with Cocoa (From: colo <email@hidden>)

  • Prev by Date: Re: Beginner with Cocoa
  • Next by Date: Re: Source list using bindings?
  • Previous by thread: Re: Garbage collection - was Beginner with Cocoa
  • Next by thread: Re: Garbage collection - was Beginner with Cocoa
  • Index(es):
    • Date
    • Thread