Re: Saving page setup accessory view settings as defaults
Re: Saving page setup accessory view settings as defaults
- Subject: Re: Saving page setup accessory view settings as defaults
- From: Bill Cheeseman <email@hidden>
- Date: Sun, 21 May 2006 17:30:00 -0400
- Thread-topic: Saving page setup accessory view settings as defaults
on 2006-05-21 2:42 PM, Bill Cheeseman at email@hidden wrote:
> How do I save custom accessory view settings from a page setup dialog, so
> that they will be restored to the same settings next time my app is
> launched?
>
> I've gotten as far as incorporating my custom settings into the app's shared
> printInfo object's dictionary when I click OK on the page setup dialog, and
> they are preserved as long as the app is running. But, even if I choose
> "Save As Default" from the Settings pop-up menu before dismissing the page
> setup dialog, my custom settings are not restored when I relaunch the app.
> Changed standard settings like page orientation are properly restored.
By examining the behavior of com.apple.print.PrintingPrefs.plist in my user
preferences folder, I now suspect that the Save As Default command in the
Settings pop-up of the page setup dialog may only be meant to save the
standard Apple page setup controls, such as page orientation and scaling
factor. And these "default" settings apparently apply to all applications,
not just the current application.
But that seems like really odd UI design, since the Save As Default command
is present and enabled even when my custom app accessory view is showing. It
looks like it is inviting itself to be used to save my custom page setup
settings, but I can't find an action method that allows me to use it.
I wonder why I can't find this command documented anywhere -- like in Mac
Help?
In any event, it looks like I should just add a Save As Default button of my
own to my custom accessory view and save the preferences in my own app
preferences. Then I can add them back into my app's sharedPrintInfo object
at -applicationDidFinishLaunching. Any reason why I shouldn't do this, other
than the UI oddity of the menu item?
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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