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