On Sun, 07 Oct 2001 00:17:55 +0200
Fred Kiefer <[EMAIL PROTECTED]> 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.

_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to