discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPopUpButton question


From: Stefan Bidi
Subject: NSPopUpButton question
Date: Thu, 24 Mar 2011 14:34:57 -0500

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?

Thanks

reply via email to

[Prev in Thread] Current Thread [Next in Thread]