• 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: 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


  • Follow-Ups:
    • Re: comboboxcell datasource problem
      • From: Warner Onstine <email@hidden>
References: 
 >comboboxcell datasource problem (From: Warner Onstine <email@hidden>)
 >Re: comboboxcell datasource problem (From: Warner Onstine <email@hidden>)

  • Prev by Date: Re: Getting a NSView pointer from a nib
  • Next by Date: Conditionally enable a button based on NSArrayController's selectedObjects?
  • Previous by thread: Re: comboboxcell datasource problem
  • Next by thread: Re: comboboxcell datasource problem
  • Index(es):
    • Date
    • Thread