From 4b4f074b6659f33b4f9e1c9784861409d8debd97 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Tue, 10 Sep 2013 18:43:18 +0000 Subject: 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 --- macosx/CheatController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'macosx/CheatController.m') 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]; -- cgit v1.2.3