discuss-gnustep
[Top][All Lists]
Advanced

[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



reply via email to

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