Re: Designing reports in Cocoa apps
Re: Designing reports in Cocoa apps
- Subject: Re: Designing reports in Cocoa apps
- From: "Kyle Sluder" <email@hidden>
- Date: Sat, 18 Oct 2008 19:51:20 -0400
On Sat, Oct 18, 2008 at 7:23 PM, Devraj Mukherjee <email@hidden> wrote:
> Wondering if any one has ideas on writing reporting features for Cocoa apps?
Well, only you can determine how to collect the data you need for the report.
Once you've done that, some developers use a WebView. This has a few
advantages; you don't have to write the drawing code yourself, and you
can reuse any layouts you may use for web-based reporting. On the
downside, it involves dragging WebKit into your app and dealing with
the DOM. This method is also usually unusable for any sort of
charting or other non-traditional reporting.
Others go the traditional route and write a custom NSView that they
print. You have to draw it yourself, but this gives you far more
control -- particularly useful when you want to know about the paper
size and orientation, or other variables specific to printing. You'll
get better results this way, but you'll probably put a lot more effort
into it.
HTH,
--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