well, I was searching for the code to make the "Left/Center/Right" Alignment for the NSTextView. I observe that in Text Menu, this functionality exists, and it is linked to the first responder calling the "alignCenter" selector. However I could not make it to work.
So I start to read the source code of TextEdit. It seems that Apple implement it and shows in the toolbar. However I was not able to find where it is. (It's not in any .nib file, and there's no selector related to align or centre or left, etc..)
So can anyone tell me: how to implement the function exactly like that in the Text Menu.
OR
Where the heck did Apple put the source code of aligning the text in their TextEdit program?