Skip navigation.
 
mlCombo Box Problem
FROM : Ted Lowery
DATE : Sat Nov 30 16:32:06 2002

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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlCombo Box Problem Ted Lowery Nov 29, 02:28
mlRe: Combo Box Problem matt neuburg Nov 29, 19:27
mlRe: Combo Box Problem Ted Lowery Nov 29, 19:34
mlRe: Combo Box Problem Chris Ridd Nov 29, 19:52
mlRe: Combo Box Problem matt neuburg Nov 29, 19:56
mlCombo Box Problem Ted Lowery Nov 30, 16:32
mlRe: Combo Box Problem Christian Brunsche… Nov 30, 16:46