Re: Why is [NSArray arrayWithObjects:] failing for me?
Re: Why is [NSArray arrayWithObjects:] failing for me?
- Subject: Re: Why is [NSArray arrayWithObjects:] failing for me?
- From: Seth Willits <email@hidden>
- Date: Sun, 3 Jan 2010 14:31:49 -0800
On Jan 3, 2010, at 2:30 PM, Seth Willits wrote:
>> NSArray* pnl = [NSArray arrayWithObjects:pa,pb,pc,pd,nil];
>> [parentDocument setPlayerNameList:pnl];
>> [pnl release];
>
> KABOOM.
>
> You are over-releasing pnl. The release call is unnecessary because the array was not alloc/init'd, made by copy, or had retain called on it within this method.
And here I am responding to a resolved thread because my Mail window wasn't scrolled all the way to the top so I didn't see any replies. Oops. :)
--
Seth Willits
_______________________________________________
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