summaryrefslogtreecommitdiff
path: root/macosx/PcsxrMemCardHandler.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/PcsxrMemCardHandler.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/PcsxrMemCardHandler.m')
-rw-r--r--macosx/PcsxrMemCardHandler.m6
1 files changed, 5 insertions, 1 deletions
diff --git a/macosx/PcsxrMemCardHandler.m b/macosx/PcsxrMemCardHandler.m
index b8d3cdd9..934414d2 100644
--- a/macosx/PcsxrMemCardHandler.m
+++ b/macosx/PcsxrMemCardHandler.m
@@ -13,7 +13,11 @@
+ (NSArray *)supportedUTIs
{
- return [NSArray arrayWithObject:@"com.codeplex.pcsxr.memcard"];
+ static NSArray *utisupport = nil;
+ if (utisupport == nil) {
+ utisupport = [[NSArray alloc] initWithObjects:@"com.codeplex.pcsxr.memcard", nil];
+ }
+ return utisupport;
}
- (id)initWithWindow:(NSWindow *)window