| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| OK, Chris; here's an example of what I'm trying to do. My program has two menu items, call them "File..." and "File Again". If the user chooses the former, he gets a window/panel allowing him to select the file the app works on. If he chooses the latter, the app works on the last file he selected. So, in the former case, I save the file path string in [NSUserDefaults standardUserDefaults], with key @"inFilePath", say. In the latter case, I retrieve the file path string in [NSUserDefaults standardUserDefaults]. So the set of user defaults must persist between one invocation of the app to another, presumably stored in some file, somewhere. That file doesn't appear to be the project's Info.plist, because there's no occurrence of the string "inFilePath" there. So where is it stashed? And do I have to do something to stash it (and retrieve it when my app begins execution), or does that happen automatically? Although reading "User Defaults Programming Topics" should enlighten me, I'm unable to form a mental picture of what's going on from reading it. --------------------------------------------------------------- On Apr 30, 2007, at 11:34 AM, Chris Hanson wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden This email sent to email@hidden
| References: | |
| >project's plist (From: Roland Silver <email@hidden>) | |
| >Re: project's plist (From: Chris Hanson <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.