开发者

What is the usage of NSResponder's indent:?

开发者 https://www.devze.com 2022-12-27 01:30 出处:网络
NSResponde开发者_StackOverflowr has a method you override called - indent:, but unsure when it would normally be activated.It\'s typically used in programming text editors to fix up the indentation of

NSResponde开发者_StackOverflowr has a method you override called - indent:, but unsure when it would normally be activated.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消