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/PluginController.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'macosx/PluginController.m') diff --git a/macosx/PluginController.m b/macosx/PluginController.m index 6bb2608e..0a47b04a 100755 --- a/macosx/PluginController.m +++ b/macosx/PluginController.m @@ -13,13 +13,13 @@ - (IBAction)doAbout:(id)sender { - PcsxrPlugin *plugin = [plugins objectAtIndex:[pluginMenu indexOfSelectedItem]]; + PcsxrPlugin *plugin = plugins[[pluginMenu indexOfSelectedItem]]; [plugin aboutAs:pluginType]; } - (IBAction)doConfigure:(id)sender { - PcsxrPlugin *plugin = [plugins objectAtIndex:[pluginMenu indexOfSelectedItem]]; + PcsxrPlugin *plugin = plugins[[pluginMenu indexOfSelectedItem]]; [plugin configureAs:pluginType]; } @@ -28,7 +28,7 @@ if (sender == pluginMenu) { NSInteger index = [pluginMenu indexOfSelectedItem]; if (index != -1) { - PcsxrPlugin *plugin = [plugins objectAtIndex:index]; + PcsxrPlugin *plugin = plugins[index]; if (![[PluginList list] setActivePlugin:plugin forType:pluginType]) { /* plugin won't initialize */ -- cgit v1.2.3