• 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: Jonathan Dann <email@hidden>
  • Date: Sun, 26 Sep 2010 13:52:45 +0200

On 24 Sep 2010, at 18:13, Ross Carter wrote:

>
>> 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.

Thanks Ross. Implementing the line numbers isn't an issue per se, but another way of implementing them may be useful to me anyway.

Much appreciated,

Jonathan_______________________________________________

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: 
 >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>)
 >Re: Cocoa Text System - Temporarily Disabling Layout (From: Ross Carter <email@hidden>)

  • Prev by Date: Get an absolute screen pos of a text cursor in another Carbon application from Cocoa app
  • Next by Date: Re: Cocoa Text System - Temporarily Disabling Layout
  • Previous by thread: Re: Cocoa Text System - Temporarily Disabling Layout
  • Next by thread: Re: Cocoa Text System - Temporarily Disabling Layout
  • Index(es):
    • Date
    • Thread