First-time-call arguments in beginPageInRect:atPlacement: seem to be incorrect
First-time-call arguments in beginPageInRect:atPlacement: seem to be incorrect
- Subject: First-time-call arguments in beginPageInRect:atPlacement: seem to be incorrect
- From: Charles Crowley <email@hidden>
- Date: Mon, 30 Jan 2006 11:22:57 -0700
I am doing custom paging in a subclass of NSView. Im my subclass I
override "beginPageInRect:atPlacement:" just to print out its
argument and then forward it to "super". The first time I print the
view I get incorrect values for the "atPlacement:" argument. The
second and all succeeding time that I print the view I get the
correct value, at least things print where I expect them to.
The coordinate system of my view is flipped and the top and bottom
margins are different. I think there is some initialization problem
going on.
What I would l like to do is correct the atPlacement:" argument
before I pass it on to super but I cannot figure out from the
documentation exactly what the correct value should be. It seems the
the "atPlacement:" argument should be NSMakePoint([sharedPrintInfo
leftMargin], [sharedPrintInfo bottomMargin]) but I am not sure and
I'm not sure if the fact that the coordinate system is flipped should
affect this value or not.
Can someone tell me what the value of this argument should be in the
normal case?
Thanks, Charlie Crowley
_______________________________________________
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