On Aug 16, 2011, at 9:09 AM, Ross Carter wrote:

> On Aug 15, 2011, at 6:19 PM, Nick Zitzmann wrote:
> 
>> Of course, if there is a better way of using the Cocoa text system to layout 
>> multiple non-contiguous pages of text with margins, I'd like to hear about 
>> it. Maybe it'll even solve the problem I'm having.
> 
> Well, it should just work without any fiddling of container or text view 
> geometry. The Cocoa text system knows how much text will fit in a text 
> container and  does a very good job of wrapping to the next container. It 
> does not cut off lines of text (most of the time; some extreme fonts such as 
> Zapfino might get clipped ascenders and descenders).

But how? I can't use a single NSTextView because this is for a view where each 
text view corresponds to a single page of text, and so AFAICT text containers 
and views must be created manually as the layout manager lays out text.

> Sometimes Quartz Debug can show you areas where text is getting drawn and 
> immediately overdrawn with background color.


I already tried that with auto-flush and flashing screen updates on, and it is 
only drawing partial lines of text, so it's not being cut off by something else 
that's drawing over it.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to