• 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: About NSEnumerator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About NSEnumerator


  • Subject: Re: About NSEnumerator
  • From: "I. Savant" <email@hidden>
  • Date: Wed, 18 Apr 2007 12:10:34 -0400

On 4/18/07, Jay <email@hidden> wrote:
The question is that, should the declared vairable "object" be released after this loop has ended, or just leave it alone? If so, should it be released inside each loop, at the ending?

You didn't create the object, so you're not responsible for releasing it:

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

--
I.S.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >About NSEnumerator (From: "Jay" <email@hidden>)

  • Prev by Date: About NSEnumerator
  • Next by Date: Re: Global variable for whole application.
  • Previous by thread: About NSEnumerator
  • Next by thread: Re: About NSEnumerator
  • Index(es):
    • Date
    • Thread