Re: parent of a menu

2017-09-08 Thread Riccardo Mottola
Hi Josh, Josh Freeman wrote: GNUstep's NSMenu.h declares some public GS-specific NSMenu methods for popup buttons (GNUstepExtra category): - (BOOL) _ownedByPopUp; - (NSPopUpButtonCell *)_owningPopUp; - (void) _setOwnedByPopUp: (NSPopUpButtonCell*)popUp; However, unlike the other GNUstepExt

Re: parent of a menu

2017-09-07 Thread Josh Freeman
GNUstep's NSMenu.h declares some public GS-specific NSMenu methods for popup buttons (GNUstepExtra category): - (BOOL) _ownedByPopUp; - (NSPopUpButtonCell *)_owningPopUp; - (void) _setOwnedByPopUp: (NSPopUpButtonCell*)popUp; However, unlike the other GNUstepExtra category methods, the ab

parent of a menu

2017-09-07 Thread Riccardo Mottola
Hi all, to "fix" a behaviour in the WinUX Theme I think I need to know if a menu is part of a NSPopUpButton. But how can I know this? The supermenu appears to be null! I habe only the item and the menu, how can I determine that it is coming from a popupbutton (obviously I don't know all popup