> Hi Nicola,
> 
> >I am still puzzled
> >by the fact that (AFAIK) in OPENSTEP the target of the submenuAction:
> >is the submenu to be detached, while in GNUstep it seems we are
> >using the menu itselfI checked it:
> 
> In OpenStep the target of the submenuAction: is the menu itself
> (no difference to GNustep).

Ahm - my assertion is mainly based on the fact that in all gmodels
I saw, the target is the submenu.  Actually, that is the way the 
submenu is encoded in gmodels at all, since in OPENSTEP NSMenuItem 
does not answer to submenu, and AFAIK the only way to get the submenu 
of a menu item in OPENSTEP is by asking for its target (that is how 
we encode/decode it in gmodels).

Can you check in your gmodels what is the target of your NSMenuItem 
with submenus ?  If it is not the submenu, please send the gmodel to me 
so I can study it - I always learn something new  :-)

> >We can
> >even spare an instance variable, since we can store the submenu in
> >the target ivar (according to an old comment I added to the gmodel code,
> >someone reported to me that this is how what happens on OPENSTEP).
> 
> OpenStep has no submenu ivar, whereas the MacOSX specs now show one.
> I have no idea how this ivar is used in MacOSX, though.

But then, if openstep has no submenu ivar, and the submenu is not stored
in the target as you say, then how is the submenu stored ?  How does 
the OPENSTEP AppKit library know the submenu of a NSMenuItem when you
click on it if it not stored anywhere ?  And if it does not know it, 
how can it pop the submenu up ?

Bye Georg, thanks for discussing, it gets interesting. :-)


Reply via email to