• 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: Fixed format report document building
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fixed format report document building


  • Subject: Re: Fixed format report document building
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 09 Jan 2014 14:03:07 -0800

On Thu, Jan 9, 2014, at 01:54 PM, email@hidden wrote:
> Windows WPF has a fixed format document API. Its documentation states:
>
> Fixed documents are intended for applications that require a precise
> "what you see is what you get" (WYSIWYG) presentation, independent of the
> display or printer hardware used. Typical uses for fixed documents
> include desktop publishing, word processing, and form layout, where
> adherence to the original page design is critical.
>
> What is the best approach for generating fixed format report documents in
> Cocoa?
>
> My thoughts:
>
> 1. I can build NSView instances in IB, bind them and print to PDF. Okay
> for simple stuff but it is not a document generation API.

This is exactly AppKit's document generation API. It's how TextEdit,
etc. generate their print output. They create (or reuse) an NSTextView,
construct an NSPrintOperation around that view, and run the print
operation.

Please read "The AppKit Printing API":
<https://developer.apple.com/library/mac/documentation/cocoa/conceptual/Printing/osxp_printingapi/osxp_printingapi.html>

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: Fixed format report document building
      • From: "email@hidden" <email@hidden>
References: 
 >Fixed format report document building (From: "email@hidden" <email@hidden>)

  • Prev by Date: Fixed format report document building
  • Next by Date: Re: Help to debug NSPerformService..
  • Previous by thread: Fixed format report document building
  • Next by thread: Re: Fixed format report document building
  • Index(es):
    • Date
    • Thread