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

Re: Memory Management


  • Subject: Re: Memory Management
  • From: Martin Häcker <email@hidden>
  • Date: Mon, 28 Jul 2003 02:20:37 +0200

Question: Is there a preferred method? And does one method cause
problems is used?

Yes, their is a preferred method:
--- snip ---
- (NSString *)name
{
return [[_name retain] autorelease];
}
- (void)setName:(NSString *)newName
{
[newName retain];
[_name release];
_name = newName;
}
--- snap ---
To read more about this, have a look at: <http://www.stepwise.com/Articles/Technical/2002-06-11.01.html/>

cu Martin
--
dont.wanna.tell
[ot]coder - hehe
_______________________________________________
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: Memory Management
      • From: Marcel Weiher <email@hidden>
References: 
 >Memory Management (From: John MacMullin <email@hidden>)

  • Prev by Date: Re: Public, private and protected variables
  • Next by Date: plotting data
  • Previous by thread: Re: Memory Management
  • Next by thread: Re: Memory Management
  • Index(es):
    • Date
    • Thread