• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Best strategy of handling many separated text lines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Best strategy of handling many separated text lines (From: Дмитрий Николаев <email@hidden>)

  • Prev by Date: Best strategy of handling many separated text lines
  • Next by Date: Re: block animation
  • Previous by thread: Best strategy of handling many separated text lines
  • Next by thread: Re: image rotation
  • Index(es):
    • Date
    • Thread