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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com