|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On May 27, 2006, at 12:17 PM, Alan Smith wrote:
Hey, I need to get an array from UserDefaults but the first time this app is run there won't be that array. That's not the only time either. So, I need to check to see if that array exists so the app doesn't crash, the way it does now. I've tried this:
if ([[NSUserDefaults standardUserDefaults] objectForKey:[[otherTable selectedPilot] name]]) { //Code creating the array }
_______________________________________________ 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
| References: | |
| >how do I check the defaults for an object? (From: "Alan Smith" <email@hidden>) |
| Home | Archives | 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 © 2011 Apple Inc. All rights reserved.