NSPopUpButton frustration
NSPopUpButton frustration
- Subject: NSPopUpButton frustration
- From: Frank Fenn <email@hidden>
- Date: Mon, 14 Apr 2003 18:27:21 -0600
Hi all,
I've created a PrefsPane project and added an NSPopUpButton in IB. I've
assigend an IBAction (setPrefsItem)
and the button itself as an outlet (prefsPopup). The button has 3 items
defined via IB and I've set unique tags.
The action method does the following:
[prefs setState:[sender indexOfSelectedItem]];
the value is saved within a directory and always has the correct
value.
When I open the preferences, in -(void)mainViewDidLoad I extract the
value from the saved preferences (still correct) and call
[prefsPopup selectItemAtIndex:index];
The internal value gets set but the visual representation is not
updated. Always the item last set in IB is visible.
I've tried to synchronize the title with the selected item but had no
luck. In a little non prefs app this works fine.
Any suggestions?
--
regards
Frank Fenn - Bright Light Software
_______________________________________________
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.
References: | |
| >OSType (From: Georges Engelmann <email@hidden>) |