NSAlert - multiple key equivalents for buttons?
NSAlert - multiple key equivalents for buttons?
- Subject: NSAlert - multiple key equivalents for buttons?
- From: David Reitter <email@hidden>
- Date: Wed, 7 Oct 2009 13:58:03 -0400
What is the easiest way to get my customized NSAlert to allow multiple
key equivalents for its buttons?
For instance, I'd like to assign not just the default Command-D to
"Don't Save", but also another key with which my users are very
familiar.
I think it might be possibly to replace the performKeyEquivalent:
implementation of the NSButtons in my NSAlert with
method_setImplementation, but I'd consider this quite the hack. Also,
I'm not entirely sure from the documentation if this is going to work
in 10.4 and later, and on 64 bit.
Can I somehow inject a responder to capture the key events while the
alert is running? I'm not familiar with this and would appreciate
some guidance!
Thanks in advance
- David
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden