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



> > 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"?
> >
>
> The one thing you do have to do is to call
> CFPrefencesAppSynchronize,
> to commit changes to disk. You'll probably want to pass
> kCFPreferencesCurrentApplication as a parameter.
> You may need to have a bundle identifier defined (in you
> application's
> Info.plist or in your plst resource if you're still unbundled
cfm),
> I'm
> not sure about that one.
>
> Fred
>

The problem I am having is that my Save Dialog location does not
equal my Load Dialog location. I think that my CFPreferences are
working--they're doing *something*. If I load a file, then every
time I go to Load File after that, even if I'm restarting the app
in-between, I go to that last load location, like I should.

The same thing for Save. I always go to the last Save location.
The problem is that I want the Save location and the Load location
to be the *same*. Now, shouldn't using the same preferencesKey do
that for me? It's not, and that's the problem. It's acting like I
have two different preference keys for save and load.

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>)
 >Re: nav services: how do I get my save location to equal my load location (From: Bob Sabiston <email@hidden>)
 >Re: nav services: how do I get my save location to equal my load location (From: Frederick Cheung <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.