Re: How to get the values entered in pagesettings panel in a Document based Application
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