Hello again,

you write "As far as I remember there is no special handling for printing in 
NSTableView that would switch off the header."

Are your sure? I have not looked at the source code, but there must be special 
code to handle tables in scroll views. The header view needs to always stay in 
place instead of scrolling out of sight. If you look carefully you see that 
that is no ordinary table view inside the scroll view. It is separated from the 
header, which is above the scrolling area.

Have I got this right?

Marko 

+-------------------------------------------------------------+
| Marko Riedel, EDV Neue Arbeit gGmbH, [EMAIL PROTECTED] |
| http://www.geocities.com/markoriedelde/index.html           |
+-------------------------------------------------------------+


--- Fred Kiefer <[EMAIL PROTECTED]> schrieb am Do, 24.7.2008:

> Von: Fred Kiefer <[EMAIL PROTECTED]>
> Betreff: Re: NSTableView, rows in reverse order
> An: [EMAIL PROTECTED]
> CC: [email protected]
> Datum: Donnerstag, 24. Juli 2008, 19:41
> Marko Riedel wrote:
> > thanks for your reply. I tried your suggestion and ran
> into a
> > problem: the table does not include the table header
> in the data for
> > dataWithEPSInsideRect: So I had to get those data
> separately, but I
> > don't know how to merge them properly. If I just
> concatenate them,
> > then the bounding box for the whole is wrong and the
> header obscures
> > part of the first row.
> > 
> 
> Not sure why this should happen, are you certain to pass in
> the correct 
> rectangle? As far as I remember there is no special
> handling for 
> printing in NSTableView that would switch off the header.
> What you could always try is to print a super view of the
> table, that 
> definitly should include everything.
> 
> 
> > The previous version (the one you commented on) uses
> ImageMagick to
> > create a PS file for printing. It looks like I
> won't be able to avoid
> > using it after all. I could assemble the two EPS files
> (header +
> > table) using Magick, but then I may as well stay with
> the old
> > approach.
> > 
> > So I guess I will try to find out how to flip views
> properly so that
> > the rows do not show up in reverse when I draw into a
> bitmap.
> > 
> 
> That is easy, just create a subclass of NSView and let the
> isFlipped 
> method return true.
> 
> > What's your take on this? Of course if I could get
> header + table in
> > one EPS file, that would be very nice.
> > 
> 
> I would prefer this solution, as it helps to improve
> GNUstep printing.
> 
> Fred
> 
> 
> _______________________________________________
> Discuss-gnustep mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/discuss-gnustep


      __________________________________________________________
Unglücklich mit Ihrer Mail-Adresse?

Millionen neuer Mail-Adressen - jetzt bei Yahoo!

http://de.docs.yahoo.com/mail/wunschmailadresse/index.html


_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to