FROM : Scott Anguish
DATE : Tue Nov 12 20:24:22 2002
On Tuesday, November 12, 2002, at 11:06 AM, Glen Thompson wrote:
> Hi, I'm fairly new to Cocoa development so I apologize now if this is a
> trivial question but it had me stumped for days now, here goes:
>
> I have a document based application with multiple windows which allows
> a user
> to make various selections. Based on the selections I construct a
> final window
> displaying text and a number of NSImageView objects containing images
> (all
> jpg). All the NSImageView objects are set to display with Proportional
> scaling
> as the actual images are too large. All looks great on the screen but
> when I
> print the window (using the contentView) all the text prints just fine
> but the
> images appear to lose their scaling and get clipped. Everything I've
> tried so
> far make no difference, if anyone has any suggestions I would be very
> grateful.
>
Your clipping problem is due to the standard behaviour of NSPrintInfo,
it is set to vertically tile, but horizontally clip. This is easily
fixed in your print code by sending the setHorizontalPagination: the
correct value (which escapes me completely at the moment.. ) (there
is a whole section on pagination in our book Cocoa Programming
(www.cocoaprogramming.net)
the other... I'm not sure..
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Tue Nov 12 20:24:22 2002
On Tuesday, November 12, 2002, at 11:06 AM, Glen Thompson wrote:
> Hi, I'm fairly new to Cocoa development so I apologize now if this is a
> trivial question but it had me stumped for days now, here goes:
>
> I have a document based application with multiple windows which allows
> a user
> to make various selections. Based on the selections I construct a
> final window
> displaying text and a number of NSImageView objects containing images
> (all
> jpg). All the NSImageView objects are set to display with Proportional
> scaling
> as the actual images are too large. All looks great on the screen but
> when I
> print the window (using the contentView) all the text prints just fine
> but the
> images appear to lose their scaling and get clipped. Everything I've
> tried so
> far make no difference, if anyone has any suggestions I would be very
> grateful.
>
Your clipping problem is due to the standard behaviour of NSPrintInfo,
it is set to vertically tile, but horizontally clip. This is easily
fixed in your print code by sending the setHorizontalPagination: the
correct value (which escapes me completely at the moment.. ) (there
is a whole section on pagination in our book Cocoa Programming
(www.cocoaprogramming.net)
the other... I'm not sure..
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Glen Thompson | Nov 12, 17:06 | |
| Scott Anguish | Nov 12, 20:24 |






Cocoa mail archive

