• 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
How can I force a key binding like in my DefaultBindings.dict file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I force a key binding like in my DefaultBindings.dict file?


  • Subject: How can I force a key binding like in my DefaultBindings.dict file?
  • From: Marc Liyanage <email@hidden>
  • Date: Sun, 4 Aug 2002 14:05:32 +0200

I was pleased to find out that the Cocoa text infrastructure already has support for comletion,
I use this in a custom XML Editor NSTextView subclass. Hitting the escape key completes the currently open tag.

However, I noticed that it only worked by accident, on my particular machine, because I previously installed a ~/Library/KeyBindings/DefaultKeyBinding.dict file which has the ESC key mapped to complete:

Another user ran the app on his machine, and the completion did not work before he installed this file too.


How can I have my App arrange for the ESC key to invoke the completion method in my views even if a user does not have such a file installed?


Cheers

-Marc






_________________________________________________________________
Marc Liyanage email@hidden
http://www.entropy.ch
ICQ 5077985

Yoda I am. Grammar I can't.
_________________________________________________________________
_______________________________________________
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.

  • Prev by Date: Can't pipe files to compileHelp
  • Next by Date: Re: Accessor methods and (auto)release <Memory trail>
  • Previous by thread: Re: Can't pipe files to compileHelp
  • Next by thread: Framework problem
  • Index(es):
    • Date
    • Thread