Re: comboboxcell datasource problem
Re: comboboxcell datasource problem
- Subject: Re: comboboxcell datasource problem
- From: Warner Onstine <email@hidden>
- Date: Fri, 28 Apr 2006 13:29:43 -0700
Thank you so much that did the trick. I think I started with that and
then began looking at the NSMutableArray methods and decided on that
one.
Thanks for the clarification, still learning the APIs and what they
do exactly.
-warner
On Apr 28, 2006, at 12:27 PM, Mike Blaguszewski wrote:
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:
40warneronstine.com
This email sent to email@hidden
_______________________________________________
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