discuss-gnustep
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]