• 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
Re: How to get the values entered in pagesettings panel in a Document based Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get the values entered in pagesettings panel in a Document based Application


  • Subject: Re: How to get the values entered in pagesettings panel in a Document based Application
  • From: Severin Kurpiers <email@hidden>
  • Date: Thu, 2 Mar 2006 08:45:25 +0100

Hi JanakiRam,

do you set the document's printInfo (e.g. in your windowControllerDidLoadNib: method)? Something like this:

- (void)windowControllerDidLoadNib:(NSWindowController *) windowController
{
// ...
[self setPrintInfo:[[[NSPrintInfo sharedPrintInfo] copy] autorelease]];
// ...
}


Bye,

Severin Kurpiers
Verek Ltd.

On 1. Mrz 2006, at 16:22, Janakiram wrote:

Message: 3
Date: Wed, 1 Mar 2006 17:42:04 +0530
From: Janakiram <email@hidden>
Subject: How to get the values entered in pagesettings panel in a
	Document	based Application
To: Cocoa Cocoa-Dev <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

Hi All,
		I have a document based application. I have overridden the
printDocument & setPrintInfo methods. When i click the File-> Page
Setup menu item the page layout panel appears. In that i have
selected manage custom sizes and entered values for the
left ,top,right ,bottom margins and clicked "ok" to close the sheet .
Once the page layout view is closed the setPrintInfo methods gets
called , in that i have printed the prinfo  , In that i was able to
see that values are not updated and they show previous values as 72 ,
72 ,90 ,90 . Am i missing any thing. Please let me know how to solve
this problem. Thanks in Advance.

-JanakiRam.

_______________________________________________ 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
  • Follow-Ups:
    • Re: How to get the values entered in pagesettings panel in a Document based Application
      • From: Janakiram <email@hidden>
  • Prev by Date: Re: vCard -> loss of Identity
  • Next by Date: Re: Need HELP - Dragging a view
  • Previous by thread: Re: Need HELP - Dragging a view
  • Next by thread: Re: How to get the values entered in pagesettings panel in a Document based Application
  • Index(es):
    • Date
    • Thread