> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com