From bda521f3a4c42277160381ddfbfb8e42b7e87274 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Sun, 23 Sep 2012 19:24:03 +0000 Subject: Changing encoding of c strings returned for the linker on OS X to ASCII: I doubt the Mach-O file format is in UTF-8 Fixing releasing when the parent's class init fails: The proper way is to pass null when that happens, not release then pass null. Using fast enumeration where possible. Modified the bin/cue handling to also find the bin for .toc files. Note that there isn't a UTI for .toc files yet. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@79980 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/ConfigurationController.m | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'macosx/ConfigurationController.m') diff --git a/macosx/ConfigurationController.m b/macosx/ConfigurationController.m index 1820b8e9..42eeee89 100644 --- a/macosx/ConfigurationController.m +++ b/macosx/ConfigurationController.m @@ -127,10 +127,9 @@ NSString *memChangeNotifier = @"PcsxrMemoryCardDidChangeNotifier"; if ([sender pullsDown]) { NSArray *items = [sender itemArray]; - NSUInteger i; - - for (i = 0; i < [items count]; i++) - [[items objectAtIndex:i] setState:NSOffState]; + for (id object in items) { + [object setState:NSOffState]; + } [[sender selectedItem] setState:NSOnState]; } -- cgit v1.2.3