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

objectAtIndex


  • Subject: objectAtIndex
  • From: Nava Carmon <email@hidden>
  • Date: Sun, 01 Nov 2009 21:44:07 +0200

Hi,

When I ran Build and Analyze on my code, it has pointed as a possible leak the following statement:

NSObject *anObject = [anArray objectAtIndex:i];

anObject wasn't released and here's the question: whether anObject is a copy of actual object, that is a member of anArray or it's the object itself?

Should I release it?

Thanks,
Nava
_______________________________________________

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


  • Follow-Ups:
    • Re: objectAtIndex
      • From: Sherm Pendley <email@hidden>
    • Re: objectAtIndex
      • From: Bryan Henry <email@hidden>
  • Prev by Date: Re: Bold and Italic For Dictionary Font Attributes (Hillegass Chapter 20, Challenge 2)
  • Next by Date: Re: objectAtIndex
  • Previous by thread: Re: Bold and Italic For Dictionary Font Attributes (Hillegass Chapter 20, Challenge 2)
  • Next by thread: Re: objectAtIndex
  • Index(es):
    • Date
    • Thread