[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSPopUpButton
From: |
Georg Fleischmann |
Subject: |
Re: NSPopUpButton |
Date: |
Sun, 7 Oct 2001 17:45:14 +0100 |
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
- 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 <=
- Re: NSPopUpButton, Philippe C.D. Robert, 2001/10/07
- 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