• 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: Trying to understand -- please help...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to understand -- please help...


  • Subject: Re: Trying to understand -- please help...
  • From: Jeff LaMarche <email@hidden>
  • Date: Wed, 21 May 2008 15:58:23 -0400


On May 21, 2008, at 3:37 PM, Johnny Lundy wrote:

I submit that any experienced programmer looking up and turning to a page entitled "NSArray Class Reference" would "expect" that a behavior of the class that results in one's created object being deallocated out from under him would be documented in such a "Reference."

Not an experienced developer who has read and understood the conceptual guide here:


http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/MemoryMgmt.html

or more specifically, the rules here:

http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Tasks/MemoryManagementRules.html

While it wouldn't be a bad idea for the NSArray class reference to explicitly document that it returns an autoreleased object, but in absence of explicit documentation otherwise, you should follow the simple, documented memory management rules of the language/framework you are using. If you don't know them, that is not the documentation's fault.
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Trying to understand -- please help... (From: Johnny Lundy <email@hidden>)

  • Prev by Date: Re: ANN: Step by step introduction to programming with Cocoa
  • Next by Date: Re: ANN: Step by step introduction to programming with Cocoa
  • Previous by thread: Trying to understand -- please help...
  • Next by thread: Re: Trying to understand -- please help...
  • Index(es):
    • Date
    • Thread