• 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: SOLVED: The position of the insertion point in an NSTextView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SOLVED: The position of the insertion point in an NSTextView?


  • Subject: Re: SOLVED: The position of the insertion point in an NSTextView?
  • From: Douglas Davidson <email@hidden>
  • Date: Wed, 5 May 2004 09:49:19 -0700

On May 5, 2004, at 5:50 AM, Ondra Cada wrote:

NSPoint insertionPoint=[tv convertPoint:gr.origin toView:nil];

In general you cannot directly use coordinates obtained from the layout manager as view coordinates. The layout manager works entirely in container coordinates, which are offset from the textview's view coordinates by the textview's textContainerOrigin--which might be (0, 0), but might not.

Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >The position of the insertion point in an NSTextView? (From: Ondra Cada <email@hidden>)
 >SOLVED: The position of the insertion point in an NSTextView? (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: NSApplicationMain const warning
  • Next by Date: Drawing subviews, then the parent view
  • Previous by thread: SOLVED: The position of the insertion point in an NSTextView?
  • Next by thread: Re: Injecting an NSResponder into the responder chain [solved]
  • Index(es):
    • Date
    • Thread