• 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
NSTextView Line Number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView Line Number


  • Subject: NSTextView Line Number
  • From: SJB <email@hidden>
  • Date: Thu, 13 Jan 2005 13:01:51 +1300 (NZDT)

Hi,
Does anyone have an easy way of getting the current
line number in an NSTextView?

I realise that I could just run through the text and
count the line ends, but that would get slower as the
file gets bigger.

Any suggestions or example code would be much
appreciated.

Simon.


Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.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

  • Follow-Ups:
    • Re: NSTextView Line Number
      • From: glenn andreas <email@hidden>
  • Prev by Date: NSTableView using bindings for its content can't be a drag source?
  • Next by Date: Re: Question about an NSScanner loop
  • Previous by thread: Re: NSTableView using bindings for its content can't be a drag source?
  • Next by thread: Re: NSTextView Line Number
  • Index(es):
    • Date
    • Thread