Re: Report writer for Cocoa?
Re: Report writer for Cocoa?
- Subject: Re: Report writer for Cocoa?
- From: Matt Neuburg <email@hidden>
- Date: Wed, 14 Jan 2009 18:41:07 -0800
- Thread-topic: Report writer for Cocoa?
On Wed, 14 Jan 2009 15:01:02 -0500, "Jon C. Munson II" <email@hidden>
said:
>I've looked at (and read) the printing-relevant Apple dox. I've read the
>relevant chapter in Hillegass' book too. I can see how much work writing
>pretty reports is going to be.
>
>Unless...
>
>I missed a point concerning an NSView - it knows about PDF, etc.
>
>The dox don't really go into this much, so here's a follow-on question to
>the first:
>
>If I take the time to draw out a view in IB with all my fields, etc., will
>that print as-is? This, then, would become the report writer, right?
I would suggest breaking the problem down in to the basic elements of a
page, classifying the "kinds of thing" you'd like to have appear on the
printed page. By default, a view draws itself by asking its subviews to draw
themselves. Thus you can have your own special NSView subclasses that know
how to draw themselves, and combine them within superviews, and now
everything becomes very tight and simple and object-oriented and easily
maintained. If you want to design certain aspects of a view in IB, of course
you can, and you can load a nib multiple times to get multiple copies of it.
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
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