Move a few last things to fast enumeration on OS X.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85907 e17a0e51-4ae3-4d35-97c3-1a29b211df97
This commit is contained in:
parent
634a5f1c0d
commit
2eec888d4c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue