Hi there, just a quick reply -- I'm in a hurry. Thanks for all your help so far.
I am definitely certain that I have the right rectangle. (I am using [table bounds].) Your suggestion re. the superview is tricky. It's a clip view inside a scroll view. It does include the header in its EPS, but it only prints the visible portion (which depends on how the user has sized tbe window). Best regards, +-------------------------------------------------------------+ | 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 __________________________________________________________ Gesendet von Yahoo! Mail. Dem pfiffigeren Posteingang. http://de.overview.mail.yahoo.com _______________________________________________ Discuss-gnustep mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnustep
