• 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
[NSDocument setPrintInfo:] question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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

  • Prev by Date: Scale the width of a toolbarFlexibleSpace (like in Mail.app)
  • Next by Date: Re: best way to compare selectors?
  • Previous by thread: Scale the width of a toolbarFlexibleSpace (like in Mail.app)
  • Next by thread: Binding NSMatrix's NSImageCells to an NSArrayController
  • Index(es):
    • Date
    • Thread