Page Breaks in NSTextViews
Page Breaks in NSTextViews
- Subject: Page Breaks in NSTextViews
- From: Glenn Andreas <email@hidden>
- Date: Mon, 25 Aug 2003 12:00:56 -0500
I'm trying to add the ability to insert a page-break into a text view
(well, let the user insert a page break).
Using TextEdit in page view, I've found that inserting a 0x0c
character seems to work (using the unicode keyboard mode to be able
to explicity add 000C) - I found no specific unicode "page separator"
character like there are a line separator and paragraph separator
characters. The problem is that if we aren't in page view mode
(which is then like my application), if you enter 000C without it
being the first character on the line, all text afterwards disappears.
I'm guessing that it is somehow saying that 0x0c is the end of a
container (and this seems to work well for page view mode since it
dynamically adds more containers as needed), though why this is only
a problem if it isn't at the beginning of a line...
All that matters is being able to print these page breaks (I don't
need to show a page mode).
Or is there a better way to do page breaks? Perhaps using a
different unicode character that doesn't have a visual
representation, and the do special page/line layout while printing
(though that sounds like a lot of work just to have a forced page
break).
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.