Re: Best strategy of handling many separated text lines
Re: Best strategy of handling many separated text lines
- Subject: Re: Best strategy of handling many separated text lines
- From: Graham Cox <email@hidden>
- Date: Wed, 04 May 2011 21:34:41 +1000
Hard to say from the vague description, but I'd say that having one text view per line is probably a bad idea.
You could have one text view, set the text right-align (NSParagraphStyle on NSAttributesString/NSTextStorage) then set the line spacing to space the lines how you want, but on the other hand if it's more like a table perhaps a table view might be the way to go. Finally you could just draw the lines of text in a single view. It all depends...
--Graham
On 04/05/2011, at 7:06 PM, Дмитрий Николаев wrote:
> Hello!
>
> Does using many NSTextView is good strategy for several separated text lines ?
>
> I need draw text right-aligned and calculate width for each line.
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden