diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-09-27 19:35:23 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-09-27 19:35:23 +0000 |
| commit | 5932a2148fd466cab7e50c5798347e73a6a81fd1 (patch) | |
| tree | c30b9adab90e8627cac06a3a14944c449a80cf1a /macosx/Source/PluginList.m | |
| parent | 637f97d9dbdb2451d80f091a650aee1e071df846 (diff) | |
| download | pcsxr-5932a2148fd466cab7e50c5798347e73a6a81fd1.tar.gz | |
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
Diffstat (limited to 'macosx/Source/PluginList.m')
| -rw-r--r-- | macosx/Source/PluginList.m | 16 |
1 files changed, 15 insertions, 1 deletions
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 |
