• 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: Any NSView (subclasss drawing) Layout Persistence Frameworks around?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Any NSView (subclasss drawing) Layout Persistence Frameworks around?
      • From: Andre <email@hidden>
References: 
 >Any NSView (subclasss drawing) Layout Persistence Frameworks around? (From: email@hidden)
 >Re: Any NSView (subclasss drawing) Layout Persistence Frameworks around? (From: Uli Kusterer <email@hidden>)
 >Re: Any NSView (subclasss drawing) Layout Persistence Frameworks around? (From: Andre <email@hidden>)

  • Prev by Date: Detecting volumes & types
  • Next by Date: Re: Stack unwinding with Objective C++
  • Previous by thread: Re: Any NSView (subclasss drawing) Layout Persistence Frameworks around?
  • Next by thread: Re: Any NSView (subclasss drawing) Layout Persistence Frameworks around?
  • Index(es):
    • Date
    • Thread