NSFormFeedCharacter does not trigger container break
NSFormFeedCharacter does not trigger container break
- Subject: NSFormFeedCharacter does not trigger container break
- From: Ross Carter <email@hidden>
- Date: Thu, 16 Jun 2005 10:27:57 -0400
In the Cocoa text system, when a NSFormFeedCharacter is inserted, it
is treated as a container break. But when the character is flowed
from one container to the next, it doesn't.
You can see this is TextEdit. Open a new document in "Wrap to Window"
mode. Type some characters, insert a page break (control-q control-l
in Panther), and type some more characters. You now have two pages.
Go back to the top of the document and type returns until the page is
full and your original text has flowed to page 2.
Instead of having 3 pages, you still have just 2; page 2 now contains
some text, plus the form feed, plus more text. The form feed did not
cause a container break when it moved to page 2.
I've tried to overcome this by fiddling with
actionForControlCharacterAtIndex in my NSATSTypesetter subclass
without success. I'm out of ideas. Any suggestions for creating true
page breaks?
Ross Carter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden