[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSPopUpButton
From: |
Pascal Bourguignon |
Subject: |
Re: NSPopUpButton |
Date: |
Tue, 9 Oct 2001 23:53:00 +0200 (CEST) |
> Date: Tue, 9 Oct 2001 19:54:23 +0100
> From: Georg Fleischmann <georg@vhf.de>
>
> Hi Axel, Hi Fred,
> >> Could anyone with access to MacOSX ask Georg for
> >> his test program and report the results on this mailing list?
> >send it to me and I can try it out.
> Actually, I have used the app, which I am porting to GNUstep,
> but now I have modified the popup example to do the tests.
> The attached source has two popups, one with the action set to
> NSPopupButton and one with the action on menu items.
> It NSLogs the sender of the action.
> Running the app on GNUstep will show most of the problems with popup buttons:
> - disabled items in one of the popup menus
> - returned index is wrong
> Georg
> Press C-c C-c here for "application/zip; name=PopUpButtons.tar.gz;
> x-unix-mode=0644" data
On the latest CVS GNUstep:
[pascal@thalassa PopUpButtons]$ PopUpButtons.app/PopUpButtons
All the items in the "PopUpButton action" pop-up are disabled.
Oct 09 23:09:14 PopUpButtons[26520] buttonAction: sender = <NSMenuItem: 823f1c8>
On OPENSTEP 4.2:
[pascal@despina PopUpButtons]$ PopUpButtons.app/PopUpButtons
Oct 09 23:27:04 PopUpButtons[368] buttonAction: sender = <NSPopUpButton:
0xbaa20> index = 0
Oct 09 23:27:05 PopUpButtons[368] buttonAction: sender = <NSPopUpButton:
0xbaa20> index = 1
Oct 09 23:27:07 PopUpButtons[368] buttonAction: sender = <NSPopUpButton:
0xbaa20> index = 2
Oct 09 23:27:09 PopUpButtons[368] buttonAction: sender = <NSMatrix: 0xbe458>
Oct 09 23:27:11 PopUpButtons[368] buttonAction: sender = <NSMatrix: 0xbe458>
Oct 09 23:27:12 PopUpButtons[368] buttonAction: sender = <NSMatrix: 0xbe458>
I hope to be able to present results on MacOSX tomorrow.
Note about NSMatrix in NSPopUpButton:
- in the OpenStep Specification dated 1994, NSPopUpButton has a
-(NSMatrix*)itemMatrix method, and the items are NSMenuCell
instances.
- in the OPENSTEP 4.2, MacOSX and actual GNUstep implementations,
NSPopUpButton lost this itemMatrix method and the items are now
higher level NSMenuItem. MacOSX has a NSMenuItemCell class, but
OPENSTEP 4.2 did not have it (at least, not publicly).
Therefore I would say that NSMatrix should not appear in the
NSPopUpButton API, and the sender of the action should not be
NSMatrix. I note that MacOSX implementation of NSMenu does not have a
NSMatrix but a NSMutableArray of NSMenuItem.
--
__Pascal_Bourguignon__ (o_ Software patents are endangering
() ASCII ribbon against html email //\ the computer industry all around
/\ and Microsoft attachments. V_/ the world http://lpf.ai.mit.edu/
1962:DO20I=1.100 2001:my($f)=`fortune`; http://petition.eurolinux.org/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT d? s++:++(+++)>++ a C+++ UB+++L++++$S+X++++>$ P- L+++ E++ W++
N++ o-- K- w------ O- M++$ V PS+E++ Y++ PGP++ t+ 5? X+ R !tv b++(+)
DI+++ D++ G++ e+++ h+(++) r? y---? UF++++
------END GEEK CODE BLOCK------
- Re: NSPopUpButton, (continued)
- Re: NSPopUpButton, Nicola Pero, 2001/10/08
- Re: NSPopUpButton, Georg Fleischmann, 2001/10/08
- Re: NSPopUpButton, Fred Kiefer, 2001/10/09
- Re: NSPopUpButton, Axel 'Mikesch' Katerbau, 2001/10/09
- Re: NSPopUpButton, Adam Fedor, 2001/10/09
- Re: NSPopUpButton, Pascal Bourguignon, 2001/10/07
Re: NSPopUpButton, Georg Fleischmann, 2001/10/08
Re: NSPopUpButton, Georg Fleischmann, 2001/10/09
- Re: NSPopUpButton,
Pascal Bourguignon <=
- Re: NSPopUpButton, Axel 'Mikesch' Katerbau, 2001/10/10