• 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
Combo Box Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Combo Box Problem


  • Subject: Combo Box Problem
  • From: Ted Lowery <email@hidden>
  • Date: Sat, 30 Nov 2002 10:32:06 -0500

Any idea why this might intermittently fail?

- (void)windowDidLoad
{
[ownerField addItemsWithObjectValues:[NSArray
arrayWithObjects:@"Ted", @"Shannon"]];

ownerField is a combo box. sometimes this works, sometimes fails. no
rhyme or reason that I can tell. when it does work the combo box is
setup correctly and works fine.

This seems to always work:
- (void)windowDidLoad
{
[ownerField addItemWithObjectValue:@"Ted"];

however I have to call a bunch of those to get the entire combo box
populated

here's a stack trace:

0 CFRetain
1 CFArrayCreate
2 +[NSArray arrayWithObjects:count:]
3 +[NSArray arrayWithObjects:]
4 -[ActivityWindowController windowDidLoad]
...

Cheers, Ted
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Combo Box Problem
      • From: Christian Brunschen <email@hidden>
  • Prev by Date: Re: Piping Strangeness
  • Next by Date: Re: Combo Box Problem
  • Previous by thread: Re: Combo Box Problem
  • Next by thread: Re: Combo Box Problem
  • Index(es):
    • Date
    • Thread