Re: MultiplePageView & Printing
Re: MultiplePageView & Printing
- Subject: Re: MultiplePageView & Printing
- From: Todd Ransom <email@hidden>
- Date: Tue, 27 Mar 2007 13:53:14 -0400
TextEdit uses its Document class as the controller class for the
multiple page view. The controller class is responsible for adding
and removing pages from the multiple page view. TextEdit uses an
addPage and removePage method for this. The controller class adds an
initial page on load and acts as the layout manager delegate to
determine when to add and remove the other pages. It must implement
layoutManager:didCompleteLayoutForTextContainer:atEnd: The controller
also acts as the delegate for the first text view to handle click on
links, cells, etc.
Todd Ransom
Return Self Software
http://returnself.com
On Mar 25, 2007, at 8:06 PM, Thaddeus Cooper wrote:
Hi All.
I am having a problem with figuring out how to set MultiplePageView
up. In my application I construct an attributed string with the
data that I want to print. My first take on this was to put the
attributed string in a text view and tell the text view to print.
This works fine except that I am now having a widow and orphan
problem. I've gotten a copy of Keith Blount's additions for the
layout manager and thought I had the thing correctly wired together
and working, but with further testing found that it was not quite
working. BTW thanks Keith. :-)
What has me perplexed is how to correctly use the MultiplePageView
class -- I'm having trouble figuring out how to get the attributed
string into it. I've tried using the Document class from TextEdit,
but it seems to be more set up for UI based editing. I've been
digging through all of the docs but I seem to be missing something.
If anyone has a suggestion that would get me back on track I'd
really appreciate it.
Thanks very much.
Thaddeus O. Cooper
(email@hidden)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden