• 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
Retain/release objects in an array...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Retain/release objects in an array...


  • Subject: Retain/release objects in an array...
  • From: Jiva DeVoe <email@hidden>
  • Date: Tue, 23 Jul 2002 22:27:54 -0700

I'm unclear... If I return an objectEnumerator from an array in one of my
functions... Should I autorelease it before returning it? And should I
retain it on the other end? Does an objectEnumerator count as an object?

Also, if I get an object via objectAtIndex, should I retain that as well?
_______________________________________________
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.

  • Follow-Ups:
    • Re: Retain/release objects in an array...
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: ask about cocoa UI
  • Next by Date: RE: [Q] How to frame NSTableView and NSOutlineView?
  • Previous by thread: Re: cycle through windows
  • Next by thread: Re: Retain/release objects in an array...
  • Index(es):
    • Date
    • Thread