- (IBAction)clearPreferences:(id)sender {
[preferences enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) {
/* The code that actually clears each preference... you might want
to do something different for each preference based on its data type...
like, set NSStrings to @"", and NSNumbers to 0...
it depends on what "clear" is in your app.
For example:*/
if ([obj isMemberOfClass:[NSString class]]) obj = @"";
}
}