summaryrefslogtreecommitdiff
path: root/macosx/CheatController.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-09-10 18:43:18 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-09-10 18:43:18 +0000
commit4b4f074b6659f33b4f9e1c9784861409d8debd97 (patch)
tree0fbd7f1ea28c9431cd8bafbaaac5d689d55d5dd6 /macosx/CheatController.m
parenta3ac4842bd5c7058b1363f7d3307f61724fc7178 (diff)
downloadpcsxr-4b4f074b6659f33b4f9e1c9784861409d8debd97.tar.gz
Convert Objective-C code to modern syntax, mainly for the NSDictionaries.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@87115 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/CheatController.m')
-rw-r--r--macosx/CheatController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/CheatController.m b/macosx/CheatController.m
index 14dbd408..4b0fc736 100644
--- a/macosx/CheatController.m
+++ b/macosx/CheatController.m
@@ -279,7 +279,7 @@
- (void)editCheatCodeSheetDidEnd:(NSWindow *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo
{
if (returnCode == NSOKButton) {
- PcsxrCheatTemp *tmpCheat = [cheats objectAtIndex:[cheatView selectedRow]];
+ PcsxrCheatTemp *tmpCheat = cheats[[cheatView selectedRow]];
if (![tmpCheat.cheatValues isEqualToArray:tempCheatCodes]) {
tmpCheat.cheatValues = tempCheatCodes;
[self setDocumentEdited:YES];
@@ -295,7 +295,7 @@
NSBeep();
return;
}
- NSMutableArray *tmpArray = [[cheats objectAtIndex:[cheatView selectedRow]] cheatValues];
+ NSMutableArray *tmpArray = [cheats[[cheatView selectedRow]] cheatValues];
NSMutableArray *newCheats = [[NSMutableArray alloc] initWithArray:tmpArray copyItems:YES];
self.tempCheatCodes = newCheats;
[NSApp beginSheet:editCheatWindow modalForWindow:[self window] modalDelegate:self didEndSelector:@selector(editCheatCodeSheetDidEnd:returnCode:contextInfo:) contextInfo:NULL];