Re: Display selectd sub-menuItem in NSPopUpButton

2014-03-17 Thread John Joyce
On Feb 15, 2014, at 12:29 AM, Keary Suska wrote: > On Feb 14, 2014, at 5:02 AM, Leonardo wrote: > >> I have filled my NSPopUpButton with menu and submenus. >> >> When I select a menuItem on the root menu (so, not a sub-menuItem), it >> propery displays the menuItem selected. And when I re-clic

Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-16 Thread Leonardo
here. Regards -- Leonardo > Da: > Data: Sun, 16 Feb 2014 09:45:05 +0900 > A: Leonardo > Cc: Graham Cox , List Developer Cocoa > , Keary Suska > Oggetto: Re: Display selectd sub-menuItem in NSPopUpButton > > Now that I think about it clearly, you might want to

Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-15 Thread dangerwillrobinsondanger
t; Da: Graham Cox >> Data: Sat, 15 Feb 2014 21:34:36 +1100 >> A: Leonardo >> Cc: List Developer Cocoa >> Oggetto: Re: Display selectd sub-menuItem in NSPopUpButton >> >> >>> On 15 Feb 2014, at 8:29 am, Leonardo wrote: >>> >>> I would

Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-15 Thread Graham Cox
On 16 Feb 2014, at 5:00 am, Leonardo wrote: > I think there should be a way to just open and display the submenus and > highlight a menu item, even if the mouse is elsewhere. But there isn't. You might be able to come up with a whole bunch of code that follows the tree back to the root paren

Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-15 Thread Jerry Krinock
On 2014 Feb 15, at 10:00, Leonardo wrote: > I think there should be a way to just open and display the submenus and > highlight a menu item, even if the mouse is elsewhere. Well, if this is a non-sandboxed Mac app, anything is *possible*. On 2014 Feb 15, at 10:09, dangerwillrobinsondan...@gmai

Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-15 Thread dangerwillrobinsondanger
, since on the list we can't attach documents. Or I can load it on > github.com. > > Regards > -- Leonardo > > >> Da: Graham Cox >> Data: Sat, 15 Feb 2014 21:34:36 +1100 >> A: Leonardo >> Cc: List Developer Cocoa >> Oggetto: Re: Display sel

Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-15 Thread Leonardo
gt; Cc: List Developer Cocoa > Oggetto: Re: Display selectd sub-menuItem in NSPopUpButton > > > On 15 Feb 2014, at 8:29 am, Leonardo wrote: > >> I would like to re-click and pre-select that meu item but I didn¹t succeed >> yet. > > > There isn't a good way

Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-15 Thread Graham Cox
On 15 Feb 2014, at 8:29 am, Leonardo wrote: > I would like to re-click and pre-select that meu item but I didn¹t succeed > yet. There isn't a good way to do that using NSPopUpButton, or menus in general, because a submenu is never laid over the actual clicked button. Items in the parent menu

Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-15 Thread John Joyce
On Feb 15, 2014, at 6:29 AM, Leonardo wrote: > Hi John, > Thank you for the code. I suppose I missed something because it doesn’t work > as expected. > I did: > > I created a popUpMenu on IB and put it on the window and connected to the > outlet popUpButton. > I connected the popUp outlet to

Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-14 Thread Leonardo
-click and pre-select that meu item but I didn¹t succeed yet. Regards -- Leonardo Da: John Joyce Data: Sat, 15 Feb 2014 02:22:06 +0900 A: Keary Suska Cc: Leonardo , List Developer Cocoa Oggetto: Re: Display selectd sub-menuItem in NSPopUpButton _popUpButton

Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-14 Thread Leonardo
:29:08 -0700 > A: Leonardo , "Cocoa-Dev (Apple)" > > Oggetto: Re: Display selectd sub-menuItem in NSPopUpButton > > On Feb 14, 2014, at 5:02 AM, Leonardo wrote: > >> I have filled my NSPopUpButton with menu and submenus. >> >> When I select a menuItem on

Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-14 Thread Keary Suska
On Feb 14, 2014, at 5:02 AM, Leonardo wrote: > I have filled my NSPopUpButton with menu and submenus. > > When I select a menuItem on the root menu (so, not a sub-menuItem), it > propery displays the menuItem selected. And when I re-click on the popUp > button, I get the selected menuItem under t

Display selectd sub-menuItem in NSPopUpButton

2014-02-14 Thread Leonardo
I have filled my NSPopUpButton with menu and submenus. When I select a menuItem on the root menu (so, not a sub-menuItem), it propery displays the menuItem selected. And when I re-click on the popUp button, I get the selected menuItem under the mouse. But if I select a sub-menuItem, it doesn't di