Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nav services: how do I get my save location to equal my load location



So, is this Tech Q&A file no longer valid? Cuz I just spent an hour
changing over to this method...

http://developer.apple.com/qa/qa2001/qa1151.html


Where are my .plist prefs?

The standard place is your com.yourcompany.yourproduct.plist file in the
Preferences folder (of all places). I'll confess some surprise that this
late in the game you aren't familiar with CFPreferences, which is supported
in CarbonLib and all versions of Mac OS X, and which all of Apple's Mac OS X
applications use. If you use CFPReferences at all, then when you write out
preferences you've set, prefs like Nav Services and HIToolbar also get saved
as well.

From looking at the CFPreferences documentation that I can find, it isn't really very clear what one must do to get it all working. I mean, there doesn't seem to be any kind of CFPreferences Initialization call, and if I don't have any other values that I want to save in cute little key-value pairs, then what do I really need to do in order to have my Save and Load dialogs go to the same place? I have the 'preferenceKey' in my dialog boxes set to the same thing. Is it necessary to save some other value with CFPreferencesSetAppValue? That seems unlikely. Is the 'client name' in the dialog options supposed to be equal to the App's ID, "com.blahblah.app"?

Because it isn't working--I would like to
see what values are being saved.

It was not clear from the way you worded your original question exactly what
you want to do. If you simply want the last location used to be used again,
then CFPReferences + prefs key is enough.

Yeah that is all I want to do. Assuming I have no other CFPreferences usage in my application, what do you have to do to have default locations work in dialogs?

Thanks
Bob
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: nav services: how do I get my save location to equal my load location (From: Laurence Harris <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.