• 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's -setTextContainerInset: issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSTextView's -setTextContainerInset: issues (From: Keith Blount <email@hidden>)

  • Prev by Date: Re: FSCopyAsync Example + Updating UI
  • Next by Date: Re: Text character under the mouse cursor in an NSTextView
  • Previous by thread: NSTextView's -setTextContainerInset: issues
  • Next by thread: Can't seem to import QuartzCore.h correctly
  • Index(es):
    • Date
    • Thread