[NSDocument setPrintInfo:] question
[NSDocument setPrintInfo:] question
- Subject: [NSDocument setPrintInfo:] question
- From: "Ewan Delanoy" <email@hidden>
- Date: Sat, 5 May 2007 16:15:06 +0200 (CEST)
- Importance: Normal
Hello all,
I noticed a surprising (to me) behavior
in my NSDocument-based app :
Just after a new page NSPrintInfo (call it pi1) has been chosen in
the standard page layout panel, the NSDocument subclass updates its print
info (i.e, the -setPrintInfo: method gets
called), and I can see in the debugger that -setPrintInfo: gets called
with an
argument pi2 that is not exactly pi1 ; in fact, pi2 coincides with pi1 on
paper size only, and the four cardinal margins of pi2 are the same as
in the old NSDocument instance's print info. It seems therefore that
although the app may change paper sizes,
it is stuck forever with its original values for the margins.
Is this normal Cocoa behavior ? If so, how can
the user-defined margins in Page Layout >Manage Custom Sizes
be used at all ?
Ewan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden