[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSPopUpButton
From: |
Fred Kiefer |
Subject: |
Re: NSPopUpButton |
Date: |
Mon, 08 Oct 2001 01:37:12 +0200 |
Hi Georg,
Georg Fleischmann wrote:
> > 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).
thank you very much. I never could have guessed this behaviour. Just now
I tried to implement it exactly as you did describe it. Could you please
test if the current implementation in CVS is the same as on OpenStep?
Fred
- 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, 2001/10/07
- Re: NSPopUpButton,
Fred Kiefer <=
- 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