• 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
Which class methods return autoreleased objects?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Which class methods return autoreleased objects?


  • Subject: Which class methods return autoreleased objects?
  • From: Jeremy French <email@hidden>
  • Date: Mon, 6 Dec 2004 16:36:46 -0500

Where in the documentation do you find out, whether or not a class method returns an autoreleased object?

For example, NSString has the method "stringWithFormat:", which returns an autoreleased NSString object. But when I look at the documentation, there is no mention that the object is being returned autoreleased.

The reference I used is "Foundation Reference for Objective-C", locating the "stringWithFormat:" under NSString. The documentation simply reads, "Returns a string created in the manner of localizedStringWithFormat:, but using the user’s default locale to format numbers. See 'Using Format Strings' for more information." (See <http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ ObjC_classic/Classes/NSString.html#//apple_ref/doc/uid/20000154/ stringWithFormat_>)

So how do you determine when a class method returns an autoreleased object?
_______________________________________________
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: Which class methods return autoreleased objects?
      • From: Scott Anguish <email@hidden>
    • Re: Which class methods return autoreleased objects?
      • From: Ricky Sharp <email@hidden>
    • Re: Which class methods return autoreleased objects?
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: creating a command without a menu item
  • Next by Date: Localized decimal point?
  • Previous by thread: Re: creating a command without a menu item
  • Next by thread: Re: Which class methods return autoreleased objects?
  • Index(es):
    • Date
    • Thread