 |
 |
NSPrintInfo orientation - reverse landscape?
|
 |
|
 |
|
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status:
Offline
|
|
An application I'm writing saves the NSPrintInfo (shared) to it's preferences file and restores it when launching. This works fine, except that when the user chooses the third paper orientation (ie, the secone landscape orientation or reverse landscape - for lack of a better term), it always reverts to the normal landscape instead of reverse landscape.
When looking at the documentation for NSPrintInfo, it looks as thought "NSPortraitOrientation" and "NSLandscapeOrientation" are the only to options for the orientation.
How do I get my application to preserve the third option which is available in the standard Page Layout panel?
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status:
Offline
|
|
Come on. Surely someone here has written a Cocoa application that preserves page layout information and in doing so is able to distinguish between the 2 types of landscape orientation.
Can somebody tell me that they have at least achieved the correct behaviour? Or is anyone else having the same problem as me?
Is there some secret trick to it that nobody is willing to share?
Am I missing something entirely obvious to everybody else?
Surely it can't be that difficult?
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
I've never had this particular problem, but I can tell you how to distinguish between the two orientations. It's a separate key in the print info dictionary called "NSPrintReverseOrientation", which holds a boolean. The left landscape button sets this value to false, and the right sets it to true. I don't know why this isn't being saved for you, but you should be able to work around the problem by saving it yourself and restoring it manually.
|
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status:
Offline
|
|
Originally posted by Chuckit:
I've never had this particular problem, but I can tell you how to distinguish between the two orientations. It's a separate key in the print info dictionary called "NSPrintReverseOrientation", which holds a boolean. The left landscape button sets this value to false, and the right sets it to true. I don't know why this isn't being saved for you, but you should be able to work around the problem by saving it yourself and restoring it manually.
Excellent! I wonder why I couldn't find that in the documentation. I'll go back and have a look for it now.
The reason it wasn't saving for me could be that I'm doing some strange things including copying the PrintInfo object (need to save several versions of page setups). It may be getting lost in the process, but thanks to your hint, I might now be able to figure out where it's getting lost, or, as you suggested, just save it separately, if needs be.
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
Originally posted by Brass:
I wonder why I couldn't find that in the documentation. I'll go back and have a look for it now.
It's not in the documentation that I can tell. I only found it by looking at the print info dictionary.
|
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Oct 2001
Location: Sweden
Status:
Offline
|
|
Originally posted by Chuckit:
It's not in the documentation that I can tell. I only found it by looking at the print info dictionary.
Then someone should file a bug in Radar against the documentation
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status:
Offline
|
|
I've finally had a chance to get back to the project in which I was having this problem. However, I have no such dictionary key in my NSPrintInfo dictionary!!!
If I log the [[printInfo dictionary] description], there is no "NSPrintReverseOrientation" key. Am I looking in the right place? The "NSOrientation" key is certainly printed, but that's already working fine.
Why do I not have the NSPrintReverseOrientation key in the PrintInfo object's dictionary, even imediately after just setting it in the Page Layout panel?
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|