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

Re: Beginner with Cocoa


  • Subject: Re: Beginner with Cocoa
  • From: "Sherm Pendley" <email@hidden>
  • Date: Mon, 24 Mar 2008 00:44:26 -0400

On Mon, Mar 24, 2008 at 12:16 AM, Jack Repenning <email@hidden>
wrote:

>
> The main thing you'll have to watch for: Objective-C 2.0 has garbage
> collection available, like Java and scripting languages you're
> familiar with, but it's off by default, and earlier Macs don't have
> it. You'll probably have to learn the old way, "retain and release,"
> which is unique to Objective-C.


... and which, IMHO, isn't *that* big a deal. The guidelines are simple, and
you can implement them up in a half-dozen lines in each setter method. So
long as you do that, and consistently use those setter methods instead of
directly assigning to instance variables, then you've taken care of 99% of
your so-called "manual" memory management. And, if you use something like
Accessorizer, or Xcode's built-in scripts, to automagically create your
accessor methods for you, then you've gotten that far without having to
write a single line of MM-related code.

sherm--
_______________________________________________

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: Beginner with Cocoa
      • From: Jeff LaMarche <email@hidden>
References: 
 >Beginner with Cocoa (From: Alex Handley <email@hidden>)
 >Re: Beginner with Cocoa (From: Jeff LaMarche <email@hidden>)
 >Re: Beginner with Cocoa (From: Jack Repenning <email@hidden>)

  • Prev by Date: Re: Intercepting retain/release of object
  • Next by Date: Re: How do I disable this warning: "local declaration of 'varname' hides instance variable"
  • Previous by thread: Re: Beginner with Cocoa
  • Next by thread: Re: Beginner with Cocoa
  • Index(es):
    • Date
    • Thread