Re: Print a NSTextView on two (or more) columns
Re: Print a NSTextView on two (or more) columns
- Subject: Re: Print a NSTextView on two (or more) columns
- From: Matt Neuburg <email@hidden>
- Date: Sun, 18 Jun 2006 07:32:13 -0700
- Thread-topic: Print a NSTextView on two (or more) columns
On Sat, 17 Jun 2006 22:38:09 +0200, J?r?me Paschoud
<email@hidden> said:
> >>Hi everyone,
> >>
> >>My problem is fairly simple to explain and without any answer on the
> >>list as far as I can tell. I've an application that display some
> >>results in an self written subclass of NSTextView. The datas in that
> >>view are all left aligned and never long enought to fill the width of
> >>an A4 paper, then I decide to print two pages on one. This way I'm
> >>not wasting paper with half empty pages.
> >>
> >>How can I do that? The only thing I was able to think of, was to
> >>merge the view of one page with an other one and some averlapping.
> >>But I was unable to find the way to do it.
> >>
> >>If you have any idea on how to achive multi column printing, any hint
> >>would be more than welcome.
> >
> >
> >The TextSizing example is on your hard disk... m.
>
>Thanks but TextSizing doesn't have anything to do with printing...
Why doesn't it? Printing is, at base, merely a matter of drawing an NSView.
The two columns in the TwoColumnsAspect demonstrated in the TextSizing
example live in an NSView. And they show how to flow text from one column to
another. So if you have or create a view containing two NSTextViews hooked
to the text system like this, and draw it in response to the request to
print, you'll be printing text in two columns. That, as I understand it, is
exactly what you asked for ("how to achieve multi-column printing"). m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
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