Re: NSTextView alignment confusion
Re: NSTextView alignment confusion
- Subject: Re: NSTextView alignment confusion
- From: Fritz Anderson <email@hidden>
- Date: Fri, 16 Apr 2004 10:06:20 -0500
The alignment is done with tabs, a right-align tab for the labels and a
left-align tab for the information.
If you have access, look in the ADC members' website for the Session
424 demo applications. The RaisedEditor demo does what you want (as
well as a _lot_ more).
-- F
On 15 Apr 2004, at 7:00 PM, Ron Medina Ballesteros wrote:
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.
--
Fritz Anderson
Consulting Programmer
http://resume.manoverboard.org/
_______________________________________________
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.