• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing


  • Subject: Re: Printing
  • From: Matt Neuburg <email@hidden>
  • Date: Sat, 7 Sep 2002 11:04:31 -0700

At 9:53 AM +0100 9/7/02, thus spake Paul Fox:

>> (2) Printing in Cocoa, quite like printing in REALbasic, is simply drawing.
>> When you learn that your user wishes to print, construct your view and draw
>> it; when it's ready, hand it to +NSPrintOperation printOperationWithView:.
>> You are now ready to print, so take the result of that call, call
>> -runOperationModalForWindow (or whatever), and that's the end.

>My confusion in your description is how do I print when what I want to print
>is hugely bigger than an on-screen view window would allow.
>Then its buffering up potentially huge amounts of stuff so that when the
>function returns it can then blast the data away to the printer?

Yes. :-) Remember, I said I was oversimplifying. But you said you were
unable to print at all; this is the easiest way to get started. After you
learn to crawl, you can learn to walk. Once you've succeeded in getting
Cocoa to print a three-page document you will realize that things are
working, and that this isn't hard. Then you can start playing with
overrides of NSView's various print-related methods. m.
--

matt neuburg, phd = email@hidden, http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
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.

  • Prev by Date: Re: how to centralize functionality more elegantly?
  • Next by Date: Re: how to centralize functionality more elegantly?
  • Previous by thread: Re: Printing
  • Next by thread: Re: Printing
  • Index(es):
    • Date
    • Thread