Re: beginPageInRect?
Re: beginPageInRect?
- Subject: Re: beginPageInRect?
- From: Mark Piccirelli <email@hidden>
- Date: Tue, 12 Feb 2002 14:04:28 -0800
When a view is being printed, the view is sent
-beginPageInRect:atPlacement: once per page. It's also sent a matching
-endPage message once per page (unless the user cancels the print
operation during the printing of the page). In between, the view is
sent a -drawRect: message. If you override
-beginPageInRect:atPlacement: or -endPage, your override should invoke
the superclass' version of the method too.
-beginPageInRect:atPlacement: is your view subclass' opportunity to do
per-page processing during printing. It's a better place to do some
things than -drawRect: because it's supposed to be called only once per
page. Even though -drawRect: is never called more than once per page in
Mac OS 10.X.Y, that's not absolutely guaranteed to always be the case
(though I can't imagine when it won't be).
-- Mark
On Wednesday, February 6, 2002, at 01:48 AM, Michhle Garoche wrote:
Could someone tell me the purpose of this function: beginPageInRect in
NSView, as I cannot find any explanation (description forthcoming) in
Documentation.
Many thanks in advance
Michhle
Michhle
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.