Combo Box Problem
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.