• 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: reassignment using convenience methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reassignment using convenience methods


  • Subject: Re: reassignment using convenience methods
  • From: Alex Lock <email@hidden>
  • Date: Sun, 5 Oct 2003 22:15:04 -0400

On Sunday, October 5, 2003, at 09:38 PM, Robert Borsuk wrote:

Is reassigning via convenience methods , in the same method, okay?

Thanks
Rob

That's fine.

Objects created with convenience methods are (mostly) autoreleased... as long as you don't plan to keep any of the data outside the scope of the current method, you should be golden as the "spare" NSString will just be dealloc'ed automatically when the autorelease pool fires.

Alex <email@hidden>
_______________________________________________
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: reassignment using convenience methods
      • From: Robert Borsuk <email@hidden>
References: 
 >reassignment using convenience methods (From: Robert Borsuk <email@hidden>)

  • Prev by Date: Re: reassignment using convenience methods
  • Next by Date: Re: reassignment using convenience methods
  • Previous by thread: Re: reassignment using convenience methods
  • Next by thread: Re: reassignment using convenience methods
  • Index(es):
    • Date
    • Thread