Re: Properly wrapping non-contiguous NSTextViews
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