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
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
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
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
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
, 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
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
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
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
-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
: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
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
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
13 matches
Mail list logo