• 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
Autorelease accessors, was Re: NSEnumerator retaining objects?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Autorelease accessors, was Re: NSEnumerator retaining objects?


  • Subject: Autorelease accessors, was Re: NSEnumerator retaining objects?
  • From: "Mike R. Manzano" <email@hidden>
  • Date: Wed, 9 Mar 2005 09:37:23 -0800

Is this an autorelease accessor?

- (NSString*) getSomething
{
	return [ NSString stringWithString:@"blah blah blah" ] ;
}

or

- (NSString*) getSomethingElse
{
	return [ [ [ aClass alloc ] init ] autorelease ] ;
}

If so, I thought these were preferred ways of doing things?

Mike
alephx01 (at) mac (dot) com


On Mar 9, 2005, at 6:38 AM, Marco Scheurer wrote:

This is IMHO a perfect example of the problems incurred by the "autorelease accessors" school of thought.

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Autorelease accessors, was Re: NSEnumerator retaining objects?
      • From: Ricky Sharp <email@hidden>
References: 
 >Re: NSEnumerator retaining objects? (From: James Bucanek <email@hidden>)
 >Re: NSEnumerator retaining objects? (From: mmalcolm crawford <email@hidden>)
 >Re: NSEnumerator retaining objects? (From: Shaun Wexler <email@hidden>)
 >Re: NSEnumerator retaining objects? (From: j o a r <email@hidden>)
 >Re: NSEnumerator retaining objects? (From: Shaun Wexler <email@hidden>)
 >Re: NSEnumerator retaining objects? (From: j o a r <email@hidden>)
 >Re: NSEnumerator retaining objects? (From: Marco Scheurer <email@hidden>)

  • Prev by Date: Re: [Advice] Inspecting a Plain Text File
  • Next by Date: RE: [Advice] Inspecting a Plain Text File
  • Previous by thread: Re: NSEnumerator retaining objects?
  • Next by thread: Re: Autorelease accessors, was Re: NSEnumerator retaining objects?
  • Index(es):
    • Date
    • Thread