On Thu, Mar 24, 2011 at 12:34 PM, Stefan Bidi <[email protected]> wrote: > I'm using the latest stable Windows release (0.25.0, or something like > that). > > I'm seeing a bug where the popup menu shows up behind the window. Is this > known and fixed already? > > I also have a question of how it's updated. Whenever I select a new item > the NSPopUpButton is not updated... it still shows the title of item 0, even > though I can verify a new item is selected (based on the return of > -titleOfSelectedItem). I use the following steps to set the values: > > [aftPicker synchronizeTitleAndSelectedItem]; > [aftPicker removeAllItems]; > [aftPicker addItemsWithTitles: serialNumbers]; > [aftPicker setNeedsDisplay: YES]; > > I had to add the -setNeedsDisplay: there because after calling > -addItemsWithTitles: the menu items would not get updated, so I need to do > something like that in order for the value displayed to be updated? If so, > how do I accomplish something like that?
Is the pop-up button configured as a pull-down? If so, pull-down's do not change their title based on the selection. and generally store the title in item 0. _______________________________________________ Discuss-gnustep mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnustep
