[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Re: bug in popup button
From: |
Michael Hanni |
Subject: |
[PATCH] Re: bug in popup button |
Date: |
Sat, 12 Apr 2003 13:51:13 -0700 (PDT) |
Hi,
--- Jeff Teunissen <deek@d2dc.net> wrote:
> On OPENSTEP:
>
> An empty (zero items) popup button beeps when you click it, and does
> nothing else (no menu appears, no action is sent).
>
> Both itemsArray and numberOfItems can return zero.
Ok, I've attached a patchset, against the latest CVS code, which implements
these behaviors without fidgeting about with "hidden" menuitems. It even beeps
when you click on, or activate with a key click, a popupbutton which has zero
items.
It compiles here, (tm), and seems to work well with the popuptest that Benhur
sent a few days ago. I am very green when it comes to reference counting so if
someone could check that I'd appreciate it. I put comments in the code so
hopefully y'all can follow my thinking.
There are some issues with the menu item cell size calculations that are
brought to light with the PopUpTest.app, but that is a seperate topic.
Cheers,
Michael
NSPopUpButton.patch
Description: NSPopUpButton.patch
NSPopUpButtonCell.patch
Description: NSPopUpButtonCell.patch
- 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 <=
- 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