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

Re: Inconsistent Memory Management Rules


  • Subject: Re: Inconsistent Memory Management Rules
  • From: Denis Stanton <email@hidden>
  • Date: Wed, 16 Apr 2003 15:37:23 +1200

Theodore

On Wednesday, April 16, 2003, at 03:07 PM, Theodore Petrosky wrote:

BTW, these are called convenience constructs.

So the rules for me are:
1) You have to use [[NSxxxxxx alloc] init], except where there is a convenience method for NSxxxxxx
2). Convenience methods for declaring objects have the form [NSxxxxxx initmethod]
3). Such convenience methods will already include autorelease.
4). Otherwise an alloc must be followed (eventually) by release

Have you read the Memory Management section at:

http://www.macdevcenter.com/pub/a/mac/2001/07/27/cocoa.html

I confess I have a accumulated a number of "must read" urls.
I will now print this particular one out so that I will be reminded to read it.

Thank you for your time.

Denis Stanton
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Inconsistent Memory Management Rules
      • From: Sherm Pendley <email@hidden>
References: 
 >Re: Inconsistent Memory Management Rules (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: How to make a NSComboBox with Images
  • Next by Date: Re: Basic concepts help. making IB connection to a specific instance
  • Previous by thread: Re: Inconsistent Memory Management Rules
  • Next by thread: Re: Inconsistent Memory Management Rules
  • Index(es):
    • Date
    • Thread