From 5932a2148fd466cab7e50c5798347e73a6a81fd1 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Sat, 27 Sep 2014 19:35:23 +0000 Subject: OS X: Make PluginList comply with the NSFastEnumeration protocol. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@91643 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/Source/PluginList.m | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'macosx/Source/PluginList.m') diff --git a/macosx/Source/PluginList.m b/macosx/Source/PluginList.m index cbe4cb95..fe5870bb 100644 --- a/macosx/Source/PluginList.m +++ b/macosx/Source/PluginList.m @@ -312,7 +312,21 @@ const static int typeList[] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD, P dst++; } } - +} + +- (NSInteger)count; +{ + return self.pluginList.count; +} + +- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(__unsafe_unretained id [])buffer count:(NSUInteger)len +{ + return [self.pluginList countByEnumeratingWithState:state objects:buffer count:len]; +} + +- (PcsxrPlugin*)objectAtIndexedSubscript:(NSInteger)index +{ + return self.pluginList[index]; } @end -- cgit v1.2.3