[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
- bug in popup button, Benhur Stein, 2003/04/10
- Re: bug in popup button, Michael Hanni, 2003/04/11
- Re: bug in popup button, Benhur Stein, 2003/04/11
- Re: bug in popup button, Serg Stoyan, 2003/04/11
- Re: bug in popup button, Jeff Teunissen, 2003/04/12
- [PATCH] Re: bug in popup button, Michael Hanni, 2003/04/12
- Re: [PATCH] Re: bug in popup button, Serg Stoyan, 2003/04/13
- Re: [PATCH] Re: bug in popup button, Michael Hanni, 2003/04/13
- Re: [PATCH] Re: bug in popup button, Serg Stoyan, 2003/04/13
Re: bug in popup button, Serg Stoyan, 2003/04/11