• 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: Command-Period Key Equivalent - Bad Idea?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Command-Period Key Equivalent - Bad Idea?


  • Subject: Re: Command-Period Key Equivalent - Bad Idea?
  • From: Kristin Webster <email@hidden>
  • Date: Thu, 19 Sep 2002 10:08:51 -0700

Hi Andreas,
It seems that the stop: action is somehow getting directed to NSApplication. Do you have an implementation of stop: in one of your objects? Which object? Does it work correctly when a sheet is not up?

Kristin

On Wednesday, September 18, 2002, at 07:48 PM, Andreas Mayer wrote:

Hi all.

I just found the cause of a strange behaviour in my app.

Whenever a sheet was up (even the toolbar configuration sheet) and I pressed command-period my application would quit.

It didn't crash. No crash log or anything.

But it didn't quit normally either. (It shouldn't from inside that sheet anyway.)

The only diagnostic output were some lines in the console about autoreleased objects without an autorelease pool.


After searching through several methods related with sheets and event handling I realized that I had a menu item with command-period as key equivalent (and stop: as action). As soon as I removed that key equivalent the error was gone.

For now I replaced it with alt-command-period and changed the action method name to something else (stopScript:).

But I think that's not quite optimal. Now I have two different key equivalents for essentially the same action - to cancel something. An other option would be to omit the stop menu item. But I want to have some visual clue that stop is actually available.

Besides - I do not really understand what the problem was in the first place ...

Any ideas anyone?


bye. Andreas.
_______________________________________________
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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Command-Period Key Equivalent - Bad Idea?
      • From: Andreas Mayer <email@hidden>
References: 
 >Command-Period Key Equivalent - Bad Idea? (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: Drawing NSGlyphs
  • Next by Date: Re: How to determine a toolbar's size?
  • Previous by thread: Command-Period Key Equivalent - Bad Idea?
  • Next by thread: Re: Command-Period Key Equivalent - Bad Idea?
  • Index(es):
    • Date
    • Thread