Text System and "Keep Together" functionality
Text System and "Keep Together" functionality
- Subject: Text System and "Keep Together" functionality
- From: "Mike R. Manzano" <email@hidden>
- Date: Tue, 25 Oct 2005 12:19:00 -0700
Hi everyone,
I would like to implement "Keep Together" functionality in my word-
processing-like program. Keep Together defines certain sets of
paragraphs as atomic units such that page breaks do not occur within
them. I am trying to figure out how to do so using NSLayoutManager,
but I can't seem to figure out where to tap in to add this logic.
Further, provided that this logic can detect that a page break needs
to occur, how to implement that page break. I am assuming a good way
to do this is to programmatically shorten the height of the current
NSTextContainer to coincide with where the break needs to occur.
Has anyone done something like this before?
~ Mike
alephx01 (at) mac (dot) com
_______________________________________________
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