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



On 7/24/04 7:27 PM, Bob Sabiston didst favor us with:

> 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"?

Yes.

>>> 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?

BTW, the prefs key alone isn't going to give you what you'd hoped, but you
should still use one because Nav Services stores other aspects of the
dialog's use as well, such as its size and location on the screen.

Larry
_______________________________________________
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: Bob Sabiston <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.