This can be simply: return [[NSUserDefaults standardUserDefaults] boolForKey:@"AlternateMouseScroll"]