Re: Any NSView (subclasss drawing) Layout Persistence Frameworks around?
Re: Any NSView (subclasss drawing) Layout Persistence Frameworks around?
- Subject: Re: Any NSView (subclasss drawing) Layout Persistence Frameworks around?
- From: Uli Kusterer <email@hidden>
- Date: Mon, 7 Nov 2005 08:18:31 +0100
Am 07.11.2005 um 01:15 schrieb Andre:
Its because what I am drawing is not necessarily sub-views in a
custom view, but pure drawing of data that has arbitrary
representation,
so I just need pure layout of those "items" even if they are not
NSView or NSResponder objects, or even NSCell.
You'll always need at least one NSView to print in Cocoa. So I'd
personally just bite the bullet and write a few typical views and
some dynamic code that can print, say, any dictionary based on layout
information from a .plist file. Write that once and make it flexible
enough and then you'll never have to write it again.
And if you're in a generous mood, put it under a BSD or MIT license
so we freeloaders can also use it ;-)
Something as simple as NSTextTable has usefull functionality, but
it only works within an NSTextView...
Something like an NSMatrix with columns and rows that could span
and also have some smarts about them...
Well, another thought would be to write some code that turns your
data into HTML and then use a WebView to print. Though there may be
some problems if you need images etc. and they're not files you can
refer to in your IMG tags. Not to mention it feels rather wasteful to
take binary data, build HTML from that just to have WebCore parse
that and turn it into a second copy of binary data again.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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