diff options
Diffstat (limited to 'macosx/ConfigurationController.m')
| -rwxr-xr-x | macosx/ConfigurationController.m | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/macosx/ConfigurationController.m b/macosx/ConfigurationController.m index ce0e6d19..e94ee790 100755 --- a/macosx/ConfigurationController.m +++ b/macosx/ConfigurationController.m @@ -170,14 +170,13 @@ NSString *const memCardChangeNumberKey = @"PcsxrMemoryCardThatChangedKey"; if (widescreen) [checkBoxDefaults setObject:widescreen forKey:@"Widescreen"]; // make the visuals match the defaults - NSEnumerator *enumerator= [checkBoxDefaults keyEnumerator]; - id key; - while ((key = [enumerator nextObject])) { + + for (NSString* key in checkBoxDefaults) { if ([defaults integerForKey:key]) { [[checkBoxDefaults objectForKey:key] setNextState]; } } - + // special cases if (![PcsxrController biosAvailable]) { // no bios means always use HLE @@ -231,14 +230,13 @@ NSString *const memCardChangeNumberKey = @"PcsxrMemoryCardThatChangedKey"; - (NSString *)keyForSender:(id)sender { - NSEnumerator *enumerator = [checkBoxDefaults keyEnumerator]; - id key; - while ((key = [enumerator nextObject])) { + for (NSString *key in checkBoxDefaults) { id object = [checkBoxDefaults objectForKey:key]; - if ([object isEqual:sender]) + if ([object isEqual:sender]) { return key; + } } - + return nil; } |
