• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Display selectd sub-menuItem in NSPopUpButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display selectd sub-menuItem in NSPopUpButton


  • Subject: Re: Display selectd sub-menuItem in NSPopUpButton
  • From: email@hidden
  • Date: Sun, 16 Feb 2014 09:45:05 +0900

Now that I think about it clearly, you might want to consider something like NSPathControl similar to the way Xcode lets you navigate files.
It probably makes more sense for showing a hierarchical selection in a small space.

Sent from my iPhone

> On 2014/02/16, at 3:00, Leonardo <email@hidden> 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.
> Then if the mouse moves and select a different menuItem, ok, I do.
> Otherwise, at the mouseUp, if the mouse didn't move or it is out of the menu
> area,  I leave the previous menuItem selected.
>
> John, if you agree, I can send you the xcode project to your email address
> only, since on the list we can't attach documents. Or I can load it on
> github.com.
>
> Regards
> -- Leonardo
>
>
>> Da: Graham Cox <email@hidden>
>> Data: Sat, 15 Feb 2014 21:34:36 +1100
>> A: Leonardo <email@hidden>
>> Cc: List Developer Cocoa <email@hidden>
>> Oggetto: Re: Display selectd sub-menuItem in NSPopUpButton
>>
>>
>>> On 15 Feb 2014, at 8:29 am, Leonardo <email@hidden> 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 do, but never submenus, so there isn't a situation that the user
>> can navigate to that can be represented by that first mouse click. Moving the
>> mouse is possible but a pretty nasty 'solution'.
>>
>> If there isn't a more appropriate UI here, you could do what I've done faced
>> with the same problem, and that is to use bold and/or underlined text for
>> items leading to the selected item, and preselect the first parent item in
>> that 'path'. The user can then follow the trail of bold items to see what the
>> control's current selected item is. It isn't ideal, but about the best I could
>> come up with when a hierarchical menu was unavoidable.
>>
>> --Graham
>
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Display selectd sub-menuItem in NSPopUpButton
      • From: Leonardo <email@hidden>
References: 
 >Re: Display selectd sub-menuItem in NSPopUpButton (From: Leonardo <email@hidden>)

  • Prev by Date: Re: Display selectd sub-menuItem in NSPopUpButton
  • Next by Date: Re: [SOLVED] progress indicator strange partial overlay
  • Previous by thread: Re: Display selectd sub-menuItem in NSPopUpButton
  • Next by thread: Re: Display selectd sub-menuItem in NSPopUpButton
  • Index(es):
    • Date
    • Thread