EDIT: Solved
Thanks much everyone I just needed to move it out of the init method!
_______
I have a NSPopUpButton in my program.
I have bound that to a variable IBOutlet NSPopUpButton * mtype
I have also bound it to a method - (IBAction) selectMtype;
In the -(id)init method of my controller object I have written
for some reason when I run my program, the item I add does not show up. I'm sure this is a noob error, but I have spent several hours googling and banging my head into a wall to no avail.
Thanks much
Thanks much everyone I just needed to move it out of the init method!
_______
I have a NSPopUpButton in my program.
I have bound that to a variable IBOutlet NSPopUpButton * mtype
I have also bound it to a method - (IBAction) selectMtype;
In the -(id)init method of my controller object I have written
Code:
- (id) init {
if (self = [super init])
{
[INDENT][mtype addItemWithTitle: @"Test Item"];[/INDENT]
}
return (self);
for some reason when I run my program, the item I add does not show up. I'm sure this is a noob error, but I have spent several hours googling and banging my head into a wall to no avail.
Thanks much