bug-gnustep
[Top][All Lists]
Advanced

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

Re: bug in popup button


From: Michael Hanni
Subject: Re: bug in popup button
Date: Fri, 11 Apr 2003 12:44:19 -0700 (PDT)

Bonjour,

--- Serg Stoyan <stoyan@hologr.com> wrote:
> Hello Michael,
> 
>   On OPENSTEP, InteraceBuilder doesn't allow to remove last item from 
>   NSPopUpButton. I think we should do it as well, so removeAllItems should
>   leave item with empty title or item at index 0. I'll check it with
>   OPENSTEP.

I think keeping the item at index 0 is counter-intuitive from an API
standpoint. Thus, I went with the empty title approach in my hack. The patch I
sent just creates a temporary NSMenuItemCell when we have no items and displays
an this empty button (minus the image though, that might be bad.) It also bails
out early from the popupbutton mousedown: when you have no items.

Your call though, you are the one working on this class. :-)

Cheers,

Michael




reply via email to

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