[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSPopUpButton
From: |
Philippe C.D. Robert |
Subject: |
Re: NSPopUpButton |
Date: |
Sun, 7 Oct 2001 19:06:01 +0200 |
Hi,
These results are correct as far as I can see. Unfortunately I do not have
access to Mac OS X anymore, so I can only confirm it for OPENSTEP as well.
-Phil
On Sun, 7 Oct 2001 17:45:14 +0100
Georg Fleischmann <georg@vhf.de> wrote:
> Hi Fred,
>
> > I would not consider NSPopUpButton that stable myself. As the
> > specification is not telling which object should be sending the action
> > method of a menu entry, this code might be wrong. Someone should do some
> > testing on different platforms to determine the expected behaviour.
>
> I did some tests on OpenStep, and I think the results are quite interesting:
>
> If the action is set to NSPopUpButton [popUpButton
> setAction:@selector(action:)], then NSPopUpButton is the sender of the action.
>
> If the action is set to NSMenuItem(s) [menuItem
> setAction:@selector(action:)],
> then NSMatrix (!) is the sender of the action.
>
> If both (NSPopUpButton and NSMenuItem) have an action set, then NSMenuItem
> has
> priority (resulting in a sender of NSMatrix for this menu item).
>
> Georg
>
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> http://mail.gnu.org/mailman/listinfo/discuss-gnustep
>
--
Philippe C.D. Robert
Software Engineer
Silicon Graphics, Inc.
- NSPopUpButton, Enrico Sersale, 2001/10/06
- Re: NSPopUpButton, Georg Fleischmann, 2001/10/06
- Re: NSPopUpButton, Fred Kiefer, 2001/10/06
- Re: NSPopUpButton, Philippe C.D. Robert, 2001/10/07
- Re: NSPopUpButton, Fred Kiefer, 2001/10/07
- Re: NSPopUpButton, Georg Fleischmann, 2001/10/07
- Re: NSPopUpButton,
Philippe C.D. Robert <=
- Re: NSPopUpButton, Fred Kiefer, 2001/10/07
- 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