toolbars
toolbars
- Subject: toolbars
- From: Matthew Johnson <email@hidden>
- Date: Thu, 04 Apr 2002 12:05:42 +1000
Hi,
I have created a Popup menu dynamically :
popUpButton = [NSPopUpButton alloc];
[popUpButton insertItemWithTitle:[NSString stringWithCString:cStr] atIndex:0];
I want that to be used as a toobar item.
items=[[NSMutableDictionary alloc] init];
NSToolbarItem *item = [[NSToolbarItem alloc] initWithItemIdentifier:identifier];
[item setLabel:label];
[item setToolTip:toolTip];
[item setTarget:target];
[item setAction:action];
[items setObject:item forKey:identifier];
This bit of code will add a space and a label for me in a tool bar. But how do I get the actual menu to show up?
Matt
_______________________________________________
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.