Re: Page Breaks in NSTextViews
Re: Page Breaks in NSTextViews
- Subject: Re: Page Breaks in NSTextViews
- From: Glenn Andreas <email@hidden>
- Date: Tue, 26 Aug 2003 09:33:37 -0500
At 5:46 PM -0500 8/25/03, tony cate wrote:
Basically, each page is in its own NSTextView embedded in a NSView.
Then you print the NSView.
That's the problem, though, since I don't want a separate view for
each page - I want one continuous view (editing source code in "page
view" mode is just plain wrong). While printing, that can be another
story, but while editing, not so much.
There are two kinds of page breaks to worry about. The first is a soft
page-break caused by the text getting to the end of the page. The
second is the user inserted hard page-break. If you're going to do this
you have to handle both.
It's really only the second one I'm worried about now. The first
doesn't cause a problem in a single container architecture (since it
just expands the container to fit).
The user inserted hard page-breaks are the problem (but only if they
aren't the first character on the line).
I'm thinking that this is actually a bug in NSTextView (after all,
if you have a single container style view and the user enters unicode
000C and the rest of the text after that disappears, this doesn't
seem like it is correct), so I've reported it as rdar://3394464
Glenn Andreas email@hidden
Author of Macintosh games: Theldrow 2.3, Blobbo 1.0.2, Cythera 1.0.2
Be good, and you will be lonesome
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.