• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
First-time-call arguments in beginPageInRect:atPlacement: seem to be incorrect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: How to Publish My Application Meeting details to iCal and also to .Mac
  • Next by Date: RE: How to prevent window redraw when removing a view?
  • Previous by thread: NSArrayController: programmatically updating an MO's attribute/field
  • Next by thread: title bars messed up when scrolling in NSTableView
  • Index(es):
    • Date
    • Thread