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

Re: NSArray- help!


  • Subject: Re: NSArray- help!
  • From: j o a r <email@hidden>
  • Date: Sat, 2 Nov 2002 18:01:02 +0100

It is not mentioned in the method, but it is documented in the more general docs on memory management and the layout of the Cocoa frameworks. Read one of the many memory management articles available from Apple, or at <http://www.stepwise.com/>.

In brief, all classmethods that returns instances will return autoreleased instances. Most often they are available in pairs, like the one in your example:

+ arrayWithObjects:
- initWithObjects:

j o a r

On Saturday, Nov 2, 2002, at 17:56 Europe/Stockholm, Dave Sopchak wrote:

This is interesting. It doesn't appear to mention the autorelease property in the docs. How did you know this and should I be on the lookout for this sort of behavior in other things?
_______________________________________________
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.

References: 
 >Re: NSArray- help! (From: Dave Sopchak <email@hidden>)

  • Prev by Date: Re: NSArray- help!
  • Next by Date: Re: metallized interface (offtopic rant)
  • Previous by thread: Re: NSArray- help!
  • Next by thread: usage of #import?
  • Index(es):
    • Date
    • Thread