0

NSResponder has a method you override called - indent:, but unsure when it would normally be activated.

4

1 回答 1

2

It's typically used in programming text editors to fix up the indentation of a piece of code, e.g. converting:

for (...) {
something
}

into:

for (...) {
    something
}

If you're not familiar with Cocoa Text's key binding system, see the documentation — it's pretty powerful and flexible.

于 2010-04-18T02:57:07.660 回答