• 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: Cocoa Text System - Temporarily Disabling Layout
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa Text System - Temporarily Disabling Layout


  • Subject: Re: Cocoa Text System - Temporarily Disabling Layout
  • From: Ross Carter <email@hidden>
  • Date: Fri, 24 Sep 2010 09:13:46 -0700

> Yeah I have line numbers views set up in all of this too, for which I have to set the width before I set the strings of the text views so you don't see the views resizing on first load if the line numbers aren't wide enough to accommodate the number of lines in the new string. Resizing the line numbers shrinks the available width for the text views and then everything lays out again.

You might want to take a look at the WWDC 2010 session that Aki gave on Cocoa text. He showed how to do line numbering by subclassing NSGlyphGenerator.
_______________________________________________

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

  • Follow-Ups:
    • Re: Cocoa Text System - Temporarily Disabling Layout
      • From: Jonathan Dann <email@hidden>
References: 
 >Cocoa Text System - Temporarily Disabling Layout (From: Jonathan Dann <email@hidden>)
 >Re: Cocoa Text System - Temporarily Disabling Layout (From: Martin Wierschin <email@hidden>)
 >Re: Cocoa Text System - Temporarily Disabling Layout (From: Jonathan Dann <email@hidden>)

  • Prev by Date: Re: How to remove an item from recentDocumentURLs
  • Next by Date: Re: "Settings" button in UITableView
  • Previous by thread: Re: Cocoa Text System - Temporarily Disabling Layout
  • Next by thread: Re: Cocoa Text System - Temporarily Disabling Layout
  • Index(es):
    • Date
    • Thread