Re: SOLVED: The position of the insertion point in an NSTextView?
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.