How can I force a key binding like in my DefaultBindings.dict file?
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.