• 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
Re: Printing page breaks in an attributed string?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing page breaks in an attributed string?


  • Subject: Re: Printing page breaks in an attributed string?
  • From: Joshua Scott Emmons <email@hidden>
  • Date: Sun, 4 Jun 2006 21:17:58 -0500

Take a look at TextEdit's MultiplePageView. You can insert a formfeed (\f) character into it and it will cause a page break.

While, empirically, I know this is true (as I've inserted a form feed and seen the page break) I, for the life of me, cannot figure out how this is accomplished. It certainly doesn't happen in in MutiplePageView. That only maps rects to already existing text views, near as I can tell. I don't see any processing that looks for formfeed and creates a new "page" (in this case, a text view) for it.


Is this done automatically by the layout manager? Reading between the lines of the TextEdit example makes me think that it might be the case that, if presented with multiple containers that it must flow text for, the layout manager might interpret a \f as a sign to "skip to the next container". I can't find any documentation on this, though. Can anyone confirm that's what's supposed to happen?

Thanks,
-Joshua Emmons _______________________________________________
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
  • Follow-Ups:
    • Re: Printing page breaks in an attributed string?
      • From: Douglas Davidson <email@hidden>
References: 
 >Printing page breaks in an attributed string? (From: Joshua Scott Emmons <email@hidden>)
 >Re: Printing page breaks in an attributed string? (From: Todd Ransom <email@hidden>)

  • Prev by Date: [SOLVED]Re: Programmatically setting up a NSTextField
  • Next by Date: Drag & Drop iTunes Playlists
  • Previous by thread: Re: Printing page breaks in an attributed string?
  • Next by thread: Re: Printing page breaks in an attributed string?
  • Index(es):
    • Date
    • Thread