• 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: comboboxcell datasource problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >comboboxcell datasource problem (From: Warner Onstine <email@hidden>)
 >Re: comboboxcell datasource problem (From: Warner Onstine <email@hidden>)
 >Re: comboboxcell datasource problem (From: Mike Blaguszewski <email@hidden>)

  • Prev by Date: Re: Animated split view collapsing
  • Next by Date: Re: First day of the week? Which one?
  • Previous by thread: Re: comboboxcell datasource problem
  • Next by thread: What is groupName in WebView?
  • Index(es):
    • Date
    • Thread