• 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
navigating NSPopUpButton menu items with arrow keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

navigating NSPopUpButton menu items with arrow keys


  • Subject: navigating NSPopUpButton menu items with arrow keys
  • From: sqwarqDev <email@hidden>
  • Date: Sun, 23 Aug 2015 15:05:09 +0700

I have an NSPopupButton in my app with half a dozen or more menu item choices.

When a user clicks on the button, they can navigate up and down the menu items by using the up and down arrow keys.

When the user navigates to the last item in the list, further presses on the down arrow key do nothing, and the user has to reverse direction using the up arrow. If the user is at the first item and wants to choice the last, or vice versa, this is a bit irritating.

Is there any way to have the down arrow cycle back to the first item when it reaches the last one (and indeed vice versa)?

I’m sure I’ve seen this behaviour in other apps, but I can’t seem to frame the question clearly enough to get any useful search results.


TIA


Best


Phil



_______________________________________________

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: navigating NSPopUpButton menu items with arrow keys
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: Swift: should computed properties be able to throw exceptions?
  • Next by Date: Is NSTreeController good with Cocoa Bindings and Core Data now?
  • Previous by thread: Can't add computed property to NSURLSessionDownloadTask?
  • Next by thread: Re: navigating NSPopUpButton menu items with arrow keys
  • Index(es):
    • Date
    • Thread