• 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
custom view for 'page setup' dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

custom view for 'page setup' dialog


  • Subject: custom view for 'page setup' dialog
  • From: Eric Slosser <email@hidden>
  • Date: Fri, 06 May 2011 09:34:40 -0400

I'm running a "page setup" dialog with an accessory view.  The view uses an NSPrintInfo object that I get from -[NSDocument printInfo].

I would think that -[NSDocument printInfo] would return the same NSPrintInfo* as the NSDocument uses internally, (with retain-autolease) but the code is acting like I'm getting a copy of it.

In particular, inside -[MyNSDocument preparePageLayout:], I have to call

	[self setPrintInfo:[self printInfo]]

or the changes I make to [[self printInfo] dictionary] get thrown away in between the time that I dismiss the panel with <OK> and the time that -[MyNSDocument documentDidRunModalPageLayout:accepted:contextInfo:] is called.

Can someone shed some light on what's going on?

Is the NSPrintInfo I get from -[NSDocument printInfo] the same one that the default panel of the 'page setup' dialog touches?

If not, how can my custom panel get/set the 'orientation' (portrait/landscape) setting on the 'page attributes' panel? _______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: Cocoa Typography: wrong presentation of space unicode characters
  • Next by Date: Weird view description problem
  • Previous by thread: Cocoa Typography: wrong presentation of space unicode characters
  • Next by thread: Weird view description problem
  • Index(es):
    • Date
    • Thread