Saving page setup accessory view settings as defaults
Saving page setup accessory view settings as defaults
- Subject: Saving page setup accessory view settings as defaults
- From: Bill Cheeseman <email@hidden>
- Date: Sun, 21 May 2006 14:42:10 -0400
- Thread-topic: Saving page setup accessory view settings as defaults
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.
This is NOT a document-based app, so I am using -[NSPageLayout runModal] for
the dialog. My app is for Tiger and newer.
I could easily archive the settings to my app's user defaults myself, but
from a user interface design perspective it seems proper to do that only if
the user has chosen "Save As Default" from the Settings pop-up. Otherwise,
why would there be a Save As Default item in the menu? But I can't find any
way to get a message when that menu item is chosen.
I've been through the Carbon and Cocoa documentation and example code to no
avail.
--
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