If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I'm having some difficult figuring out how to create the same alignment found in an
NSTextView that AddressBook has where it has the labels for the contact information
right aligned and the actual info left aligned. It appears as if they have a margin down
the middle and the text on the left are right aligned and the text on the right are left aligned.
I first tried drawAtPoint: but then after trying this I failed to realize that drawing a string
prevented me from having the ability to select and higlight the text.
Is there something in the NSTextStorage that could possibly help me create this alignment.
They use NSTextTab to create right-aligned and left-aligned tab stops. Try it in TextEdit with the ruler. Create, for example, a right-aligned tab at 2 cm, then a left-aligned one at 2.3 cm.
(Last edited by Ibson; Apr 16, 2004 at 03:15 AM.
)