• 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: Why is [NSArray arrayWithObjects:] failing for me?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is [NSArray arrayWithObjects:] failing for me?


  • Subject: Re: Why is [NSArray arrayWithObjects:] failing for me?
  • From: Scott Anguish <email@hidden>
  • Date: Mon, 4 Jan 2010 17:26:55 -0500

that’s fine, Aaron’s book is an excellent source.

The issue is more that the memory management rules shouldn’t be paraphrased here. Too easy for people to make errors and confuse users.


On Jan 4, 2010, at 11:24 AM, Alex Kac wrote:

> Normally I’d agree, but people understand things in different ways. I found reading Aaron Hillegass book on Cocoa far more understandable than Apple’s docs. When I first started I used Apple’s docs as my reference and Aaron’s book as a way to understand it. Now I just use the Apple docs, but for beginners I strongly recommend that book.
>
> On Jan 4, 2010, at 6:11 AM, Roland King wrote:
>
>>> On 2010-01-03 00:08, Eric Smith wrote:
>>>> Correct, do not release the array.  If you don't create it with "init", or retain it, then you should not release it.
>>>>
>>> Eric, thank you for stating that rule. It should be easy enough to remember and help me avoid this problem in the future.
>>
>> With respect to Eric, that's part of the rule, the rules are in the memory management guide and it's better to read them in full from the apple documentation than paraphrase them.
>
> Alex Kac - President and Founder
> Web Information Solutions, Inc.
>
> "The optimist proclaims that we live in the best of all possible worlds; and the pessimist fears this is true."
> -- James Clabell
>
>
>
>
> _______________________________________________
>
> 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

_______________________________________________

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: 
 >Why is [NSArray arrayWithObjects:] failing for me? (From: Charles Jenkins <email@hidden>)
 >Re: Why is [NSArray arrayWithObjects:] failing for me? (From: "Eric E. Dolecki" <email@hidden>)
 >Re: Why is [NSArray arrayWithObjects:] failing for me? (From: Charles Jenkins <email@hidden>)
 >Re: Why is [NSArray arrayWithObjects:] failing for me? (From: Roland King <email@hidden>)
 >Re: Why is [NSArray arrayWithObjects:] failing for me? (From: Alex Kac <email@hidden>)

  • Prev by Date: Re: Do I need to download both XCode for both Mac & iPhone
  • Next by Date: Re: GC memory leak - what is it?
  • Previous by thread: Re: Why is [NSArray arrayWithObjects:] failing for me?
  • Next by thread: Re: Why is [NSArray arrayWithObjects:] failing for me?
  • Index(es):
    • Date
    • Thread