Re: Cocoa class extension best practice
Re: Cocoa class extension best practice
- Subject: Re: Cocoa class extension best practice
- From: Steve Mills <email@hidden>
- Date: Tue, 15 Oct 2013 15:30:28 -0500
On Oct 15, 2013, at 14:50:51, Steve Mills <email@hidden> wrote:
> NSArray* items = [self itemArray];
>
> for(NSMenuItem* item in items)
> blah;
>
> [items release];
Ah, this one won't work (I didn't try it before when I wrote my original message) because itemArray actually does return a new *immutable* array, but it's not release-able. Doing so produces a crash.
--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157
_______________________________________________
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