diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-12-17 19:08:51 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-12-17 19:08:51 +0000 |
| commit | b6f15852f36e8d017a275bc3727c5dcab1846d29 (patch) | |
| tree | d4913175221b0ea3baca8f0b9bc62e86f481f1aa /macosx/PcsxrFreezeStateHandler.m | |
| parent | b205e6323f8b10c9dcbfb9fd21e7cb896b3805ef (diff) | |
| download | pcsxr-b6f15852f36e8d017a275bc3727c5dcab1846d29.tar.gz | |
Reduce code duplication in -[PcsxrController application:openFile:].
Added a new function to the PcsxrFileHandle protocol that says what types of UTIs it supports. Currently only used when selecting discs or memory cards from an open dialog, and not used in checking if an app can open a file.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@73437 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PcsxrFreezeStateHandler.m')
| -rw-r--r-- | macosx/PcsxrFreezeStateHandler.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/macosx/PcsxrFreezeStateHandler.m b/macosx/PcsxrFreezeStateHandler.m index ae236168..5e1e493c 100644 --- a/macosx/PcsxrFreezeStateHandler.m +++ b/macosx/PcsxrFreezeStateHandler.m @@ -12,6 +12,11 @@ @implementation PcsxrFreezeStateHandler ++ (NSArray *)utisCanHandle +{ + return [NSArray arrayWithObject:@"com.codeplex.pcsxr.freeze"]; +} + - (BOOL)handleFile:(NSString *)theFile { if (CheckState([theFile fileSystemRepresentation]) != 0) { |
