bug-gnustep
[Top][All Lists]
Advanced

[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 12:03:51 +0200

On Sun, 07 Oct 2001 00:17:55 +0200
Fred Kiefer <FredKiefer@gmx.de> wrote:

> Georg Fleischmann wrote:
> > 
> > Enrico Sersale wrote:
> > > Actually, is the NSPopUpButton code to be considered stable?
> > 
> > With the cvs version from Oct 4th pop up menus still seem quite unreliable 
> > to me.
> > Additionally pop up menu items loaded from a gmodel file appear disabled.
> 
> 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 am not sure if we talk about the same issue here, but I was told that there 
are some problems in that respect. In ProjectCenter I use NSPopUpButtons' 
action method to invoke sth like popupChanged:. In that method I use a switch 
statement to identify the index of the sender's selected item:

switch([sender indexOfSelectedItem]) { ... }

I now was told that the sender seems to be of class NSMenuItem???!!! This 
should not be the case unlike the specs have changed since OPENSTEP - any ideas?

-Phil
-- 
Philippe C.D. Robert
Software Engineer
Silicon Graphics, Inc.



reply via email to

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