• 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: Page Breaks in NSTextViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Page Breaks in NSTextViews


  • Subject: Re: Page Breaks in NSTextViews
  • From: Glenn Andreas <email@hidden>
  • Date: Tue, 26 Aug 2003 09:33:37 -0500

At 5:46 PM -0500 8/25/03, tony cate wrote:
Basically, each page is in its own NSTextView embedded in a NSView.
Then you print the NSView.

That's the problem, though, since I don't want a separate view for each page - I want one continuous view (editing source code in "page view" mode is just plain wrong). While printing, that can be another story, but while editing, not so much.


There are two kinds of page breaks to worry about. The first is a soft
page-break caused by the text getting to the end of the page. The
second is the user inserted hard page-break. If you're going to do this
you have to handle both.


It's really only the second one I'm worried about now. The first doesn't cause a problem in a single container architecture (since it just expands the container to fit).

The user inserted hard page-breaks are the problem (but only if they aren't the first character on the line).

I'm thinking that this is actually a bug in NSTextView (after all, if you have a single container style view and the user enters unicode 000C and the rest of the text after that disappears, this doesn't seem like it is correct), so I've reported it as rdar://3394464

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.

References: 
 >Re: Page Breaks in NSTextViews (From: tony cate <email@hidden>)

  • Prev by Date: Setting font to WebView
  • Next by Date: Re: putting structs in NSArray
  • Previous by thread: Re: Page Breaks in NSTextViews
  • Next by thread: Chicago August Meeting - Tuesday August 26th
  • Index(es):
    • Date
    • Thread