• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Text System and "Keep Together" functionality
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Updated: NSTextView:setString stalls sometimes...
  • Next by Date: more than one DMMemberAccount at same time
  • Previous by thread: Re: Current -in-drawing NSCell (NSOutlineView)
  • Next by thread: more than one DMMemberAccount at same time
  • Index(es):
    • Date
    • Thread