Re: NSTextView's -setTextContainerInset: issues
Re: NSTextView's -setTextContainerInset: issues
- Subject: Re: NSTextView's -setTextContainerInset: issues
- From: Douglas Davidson <email@hidden>
- Date: Mon, 23 Oct 2006 09:21:05 -0700
On Oct 22, 2006, at 4:37 AM, Keith Blount wrote:
It is possible to set the text container and view sizes and
resizing behavior so that the inset cannot be maintained exactly,
although the text system tries to maintain the inset wherever
possible. In any case, the textContainerOrigin and size of the text
container are authoritative as to the location of the text
container within the view.
Does this explain the behaviour I am seeing? Or is this a display
bug in NSTextView? Does anybody know if there is anything I can do
to work around this? The code I am using to scale the text view is
included below.
What you're seeing sounds like a display bug, although I have not
seen this exact issue. The issues that are being noted in the
documentation have to do with setting the origin when there is not
enough space in the text view for the entire container.
I notice that you are setting the inset to integral values in
container and view coordinates, but when the view is scaled that does
not correspond to integral values in screen space. You might try
experimenting with that.
Douglas Davidson
_______________________________________________
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