Re: Get the number of lines of text in an NSTextView?
Re: Get the number of lines of text in an NSTextView?
- Subject: Re: Get the number of lines of text in an NSTextView?
- From: Eamon Ford <email@hidden>
- Date: Tue, 24 Jan 2006 15:28:05 -0800
I'd get the total number of characters, and divide it by the number
of characters that can show up on one line (a glyph range?). I may be
wrong though; I'm rather new.
On Jan 24, 2006, at 3:17 PM, Todd Ditchendorf wrote:
Dear list, How can you determine the total number of lines of text
in an NSTextView?
I've looked in NSTextView, NSTextStorage, NSTextContainer, and
NSAttributedString, but haven't yet noticed a method that looks
like it will give me the information I'm looking for.
Anyone have any advice?
Thanks!!!!
Todd Ditchendorf
http://ditchnet.org
http://scan.dalo.us (Cocoa Developer Tools)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden