I have a programmatic NSPopUpButton used by a toolbar item. The pop-up
list does not display the option that was last selected.
The documentation says "A pop-up list lets the user choose one option
among several and generally displays the option that was last selected."
How do I make the button automatically display the last selection?
NSPopUpButton *button = [[NSPopUpButton alloc]
initWithFrame:NSMakeRect(0.0, 0.0, 60.0, 22.0) pullsDown:NO];
[button addItemWithTitle:@"1"];
[button addItemWithTitle:@"2"];
--Richard
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com