Re: Cocoa Text System - Temporarily Disabling Layout
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