'Implementing custom Ctrl+a in Objective-C

How can I implement modified behavior when the user clicks Ctrl+A (select all). I tried modifying the keyDown: event but it didn't seem to catch the event.



Solution 1:[1]

?+A is generally mapped to selectAll: on the first responder. You should be able to simply implement the selectAll: method on any responder in the chain and it'll "just work".

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Rob Keniger