• 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: 2 questions and 1 idea
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2 questions and 1 idea


  • Subject: Re: 2 questions and 1 idea
  • From: Deirdre Saoirse Moen <email@hidden>
  • Date: Fri, 8 Jun 2001 19:56:54 -0700

At 11:05 AM -0700 6/7/01, Mike Ferris wrote:
My experience, with a carbon app (which may or may not be relevant): the outcome is non-deterministic, indicating a race condition of some kind.

Specifically, in Eudora, there's Command-H for Hide this Application and Command-H for Add attachment. Whenever I hit the combination, I don't know which behavior I'm going to get. I've gotten the latter when there was no open email to attach a file to and the former when there was. ::shrug::

In Cocoa, there are three levels of precedence for command keys in menus:

- User key equivalent overrides via NSUserKeyEquivalents default
- Application menu items
- Services menu items

For collisions, items in the category higher in the above list win. Collisions between items within these categories are handled on a first-come-first-served basis. This applies to which item is actually invoked as well as to which item visually gets the key drawn on it. Only one item in a Cocoa app should ever have Cmd-H drawn next to it, for example, regardless of how many items want it.

Eudora is the example I gave of ambiguous behavior, but it's really a Carbon app.

The funny thing is, if there's a compose window open, the application menu item seems to win. If there isn't, the attachment item seems to win. Very strange behavior (but, as I said, not deterministic).

Granted, it's bad interface and I filed a bug on it.
--
_Deirdre * Stash-o-Matic: http://weirdre.com * http://deirdre.net
"Pointy-haired is one thing, but this Bozo the Clown thing has GOT to stop."


References: 
 >Re: 2 questions and 1 idea (From: Mike Ferris <email@hidden>)

  • Prev by Date: That QuickDraw-View Icon... (was: RE: OpenGL Examples in Cocoa)
  • Next by Date: Re: Bundle problems
  • Previous by thread: Re: 2 questions and 1 idea
  • Next by thread: Re: 2 questions and 1 idea
  • Index(es):
    • Date
    • Thread