Re: comboboxcell datasource problem
Re: comboboxcell datasource problem
- Subject: Re: comboboxcell datasource problem
- From: Mike Blaguszewski <email@hidden>
- Date: Fri, 28 Apr 2006 15:27:28 -0400
On Apr 28, 2006, at 3:08 PM, Warner Onstine wrote:
[super init];
weightRoutines = [NSMutableArray array];
You want [[NSMutableArray alloc] init] here. The -array method
returns an autoreleased object that gets deallocated the next time
through the event loop. So comboBoxCell:objectValueForItemAtIndex: is
just accessing garbage.
--
Mike Blaguszewski / Cocoa Hacker / Ambrosia Software, Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden