• 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: Receiving modifer-clicks on open menus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Receiving modifer-clicks on open menus


  • Subject: Re: Receiving modifer-clicks on open menus
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Tue, 27 Apr 2004 22:00:42 +0200

At 0:54 Uhr -0500 20.04.2004, Jim Witte wrote:
I'd like the same functionality for items in the folder menus: I'd click on a folder to drop it's menu down, and then control-click on one of the items to drop down a "sub-contextual menu" that would apply to just that item.

I don't think that would be good form, and waay too complex. Navigating submenus is one of the most complex actions a user can perform. Having them several levels deep isn't really a nice idea. Also, I don't think you're allowed to have a keyboard shortcut and a submenu on a menu item at the same time.

I suppose I could do a work-around where you'd control-click on a folder *icon* (which currently brings up a "folder contextual menu": Open All Links As Tabs, Delete, Get Info, etc), and then have that create a list view or something that would *look* like a menu, and have parts of it respond to control-clicks. But that just seems ugly..

Wait, are you talking about popup menus or menu bar menus? If the latter, what I wrote above applies. You can't, and shouldn't do it. If the former, you'd just subclass whatever button class you're using to display these items (or add an appropriate NSTableView delegate method, or whatever you use to display them in) and check the keyboard modifiers of [NSApp currentEvent]. Depending on that, you can then use different behavior.

In that case, I'd suggest you use behavior like Safari: Single click opens the bookmark folder's bookmarks as tabs, clicking and holding brings up a menu with the bookmarks in that folder, and control-clicking brings up a context menu.

But of course, if you're using a table view, the smarter choice is to use an NSOutlineView instead, which is hierarchical, like a tree-view in Windows.

(And if you actually wanted to get info on the folder, you'd have to control-click it twice or something, unless I wanted to have this "list view behavior" be used for *all* clicks on folders and not use real menus at all, which would be even *more* ugly..

Yes, that would really be ugly, not to mention it luckily isn't allowed in a menu.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Receiving modifer-clicks on open menus (From: Jim Witte <email@hidden>)
 >Re: Receiving modifer-clicks on open menus (From: "M. Uli Kusterer" <email@hidden>)
 >Re: Receiving modifer-clicks on open menus (From: Jim Witte <email@hidden>)

  • Prev by Date: Re: NSThread or NSTimer
  • Next by Date: Re: Is Concatenation that complex?
  • Previous by thread: Re: Receiving modifer-clicks on open menus
  • Next by thread: Launching a Carbon program with NSTask?
  • Index(es):
    • Date
    • Thread