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: Ricky Sharp <email@hidden>
- Date: Tue, 24 Jan 2006 17:56:41 -0600
On Jan 24, 2006, at 5: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.
Check out the TipWrapper example. Specifically look at the
NSTextView_Lines.h/.m. It provides a category on NSTextView where
you can obtain a line count.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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