• 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: NSTextView getting the cursor col/row
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView getting the cursor col/row


  • Subject: Re: NSTextView getting the cursor col/row
  • From: Ondra Cada <email@hidden>
  • Date: Fri, 6 May 2005 14:24:29 +0200

Duncan,

On 6.5.2005, at 7:45, Duncan Campbell wrote:

I'm trying to figure out how to get the current col/row of the cursor in an NSTextView subclass

Bad news: the text system is too complicated to be accessed using the plain old col/row paradigm. Read on the text system in general, focusing on the layout manager.


Nevertheless, if what you want is just a matrix of characters, it might be better to use your own simplified text view: far as I know and unless I am mistaken too much, that's what Terminal does.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc



_______________________________________________ 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: 
 >NSTextView getting the cursor col/row (From: Duncan Campbell <email@hidden>)

  • Prev by Date: Re: getting the key window from another application
  • Next by Date: NSTextView with RTF as string?
  • Previous by thread: NSTextView getting the cursor col/row
  • Next by thread: Function to write to one pixel?
  • Index(es):
    • Date
    • Thread