• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Get the number of lines of text in an NSTextView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Get the number of lines of text in an NSTextView? (From: Todd Ditchendorf <email@hidden>)

  • Prev by Date: Re: Small Webkit question
  • Next by Date: Re: Small Webkit question
  • Previous by thread: Re: Get the number of lines of text in an NSTextView?
  • Next by thread: Re: Get the number of lines of text in an NSTextView?
  • Index(es):
    • Date
    • Thread