discuss-gnustep
[Top][All Lists]
Advanced

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

Re: NSPopUpButton question


From: Matt Rice
Subject: Re: NSPopUpButton question
Date: Thu, 24 Mar 2011 13:26:18 -0700

On Thu, Mar 24, 2011 at 12:34 PM, Stefan Bidi <stefanbidi@gmail.com> 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.



reply via email to

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