views:

26

answers:

1

I'm implementing a custom text box using -interpretKeyEvents: and am trying to figure out what the difference is between moveBackward: vs moveLeft: and moveForward: vs moveRight:. moveLeft: is bound to the left arrow and moveBackward: is bound to Ctrl + B. The documentation describes them almost identically and they seem to behave identically in practice.

I'm assuming this is just a holdover from Vim? Does anyone know what the real difference is? Should moveBackward: just call my moveLeft: implementation?

Thanks a lot,

Nick

+1  A: 

Comparing the documentation, moveBackward says it moves to the beginning of the selection, and moveLeft says it moves to the left end. So we ask ourselves, is the left end always the beginning? Not in right to left text (as in Hebrew or Arabic).

JWWalker