NSPopUpButton Display Last Selected
NSPopUpButton Display Last Selected
- Subject: NSPopUpButton Display Last Selected
- From: Richard Somers <email@hidden>
- Date: Tue, 13 Jul 2010 13:00:42 -0600
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 (email@hidden)
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:
This email sent to email@hidden