I am using NSUserDefaults to store some data. On first run of the application, I check for the data, and if it's not been set already, I set it.
I however get warnings in my code. In my .h I set up my variables, and then in my .m: NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults]; alarm1_hour = [prefs integerForKey:@"alarm1Hour"]; if( alarm1_hour == NULL ){ NSLog(@"alarm 1 hour is null" ); } Should I use a temporary variable to check instead of the variable with the pointer? Or are these warnings okay to ignore? _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com