NSTextView alignment confusion
NSTextView alignment confusion
- Subject: NSTextView alignment confusion
- From: Ron Medina Ballesteros <email@hidden>
- Date: Thu, 15 Apr 2004 17:00:06 -0700
Hi,
I'm trying to create the same lay out in Address Book's NSTextView of
the contact's information where the labels appear to be right aligned
and the
information is left aligned on some kind of vertical line. Similar to
below:
label 1: Some data
some other label: Another data
I can't seem to get over the hump as to how this is done.
I tried using drawAtPoint: and having the label and information
in one string and using a NSParagraphStyle alignment of
NSCenterTextAlignment
but unfortunately this wouldn't allow me to perform the operations of
selecting or copying the text that is drawn.
It seems fairly simple but I can't seem to figure out as to how this is
done.
Any tips on how to approach this?
Thanks.
ron
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.