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: Janakiram <email@hidden>
- Date: Thu, 2 Mar 2006 14:11:20 +0530
Hi,
The Problem is not due to setting the printInfo. The NSDocument will
have a instance variable to store printInfo assosiated with it. The
Main Problem is the paper size & orientaion are getting updated in
the printInfo but not the page margins when the page layout view is
dismissed.Is there any reason why it is not getting updated ? . Is
there any way to do it if so provide me some link so that i can go
over the code. Thanks in Advance,
-JanakiRam.
On 02-Mar-06, at 1:15 PM, Severin Kurpiers wrote:
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