summaryrefslogtreecommitdiff
path: root/macosx/PcsxrDiscHandler.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2012-05-23 23:20:57 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2012-05-23 23:20:57 +0000
commit659ecb8f16705b22ab7941922b61fcd1831ead28 (patch)
tree73957e832e707d09054c99697616dd4d9cc3e013 /macosx/PcsxrDiscHandler.m
parent3e2fd08a49abdf6be2572449116486807786ef7f (diff)
downloadpcsxr-659ecb8f16705b22ab7941922b61fcd1831ead28.tar.gz
Make repetitive array creation only happen once on OS X.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@78288 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PcsxrDiscHandler.m')
-rw-r--r--macosx/PcsxrDiscHandler.m6
1 files changed, 5 insertions, 1 deletions
diff --git a/macosx/PcsxrDiscHandler.m b/macosx/PcsxrDiscHandler.m
index 87031435..83a83e8d 100644
--- a/macosx/PcsxrDiscHandler.m
+++ b/macosx/PcsxrDiscHandler.m
@@ -15,7 +15,11 @@
+ (NSArray *)supportedUTIs
{
- return [NSArray arrayWithObjects:@"com.alcohol-soft.mdfdisc", @"com.goldenhawk.cdrwin-cuesheet", @"com.apple.disk-image-ndif", @"public.iso-image", nil];
+ static NSArray *utisupport = nil;
+ if (utisupport == nil) {
+ utisupport = [[NSArray alloc] initWithObjects:@"com.alcohol-soft.mdfdisc", @"com.goldenhawk.cdrwin-cuesheet", @"com.apple.disk-image-ndif", @"public.iso-image", nil];
+ }
+ return utisupport;
}
- (BOOL)handleFile:(NSString *)theFile