• 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: Properly wrapping non-contiguous NSTextViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Properly wrapping non-contiguous NSTextViews


  • Subject: Re: Properly wrapping non-contiguous NSTextViews
  • From: Martin Wierschin <email@hidden>
  • Date: Mon, 15 Aug 2011 13:22:24 -0700

>> I don't know the particulars of your situation or what might be triggering the cutoff display (are they just descenders?), but have you tried reducing the height of the NSTextContainer while keeping your NSTextView height the same? (You'll have to disable automatic resizing).

>
> I did

Can you post your new code? Your first post shows that you are modifying the text view. It might help to see the rest of your code as well.

> what happens is the layout manager keeps the last line in the text container where it will not be drawn. It will not move the last line to the next container unless I resize the text container to be two pixels smaller than needed, which results in text getting partially cut off later in the document.

You're saying that if you decrease the height of text container (N), forcing the last line onward, you see drawing artifacts in container (N + 1)? Can you post a screenshot?

Honestly this sounds unusual- do you have any other modifications at work? Also, at what point are you running this loop where you modify the text container heights? You're not doing it from a layout delegate method are you? NSLayoutManager is quite finicky about that (or at least it used to be).

~Martin

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Properly wrapping non-contiguous NSTextViews
      • From: Nick Zitzmann <email@hidden>
References: 
 >Properly wrapping non-contiguous NSTextViews (From: Nick Zitzmann <email@hidden>)
 >Re: Properly wrapping non-contiguous NSTextViews (From: Ross Carter <email@hidden>)
 >Re: Properly wrapping non-contiguous NSTextViews (From: Nick Zitzmann <email@hidden>)
 >Re: Properly wrapping non-contiguous NSTextViews (From: Martin Wierschin <email@hidden>)
 >Re: Properly wrapping non-contiguous NSTextViews (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: File Copy With Progress?
  • Next by Date: Re: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed?
  • Previous by thread: Re: Properly wrapping non-contiguous NSTextViews
  • Next by thread: Re: Properly wrapping non-contiguous NSTextViews
  • Index(es):
    • Date
    • Thread