Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 43 lines (32 sloc) 1.366 kb
5240e343 » Philip Dow
2011-07-06 initial commit
1 //
2 // NSWorkspace_PDCategories.h
3 // SproutedUtilities
4 //
5 // Created by Philip Dow on 9/9/06.
6 // Copyright Sprouted. All rights reserved.
7 // All inquiries should be directed to developer@journler.com
8 //
9
10 #import <Cocoa/Cocoa.h>
11 #import <QTKit/QTKit.h>
12
13 static short GetLabelNumber (short flags);
14 static void SetLabelInFlags (short *flags, short labelNum);
15 static OSErr FSpGetPBRec(const FSSpec* fileSpec, CInfoPBRec *infoRec);
16
17 @interface NSWorkspace (PDCategories)
18
19 - (NSString*) UTIForFile:(NSString*)path;
20 - (NSString*) allParentsForUTI:(NSString*)uti;
21 - (NSArray*) allParentsAsArrayForUTI:(NSString*)uti;
22
23 - (BOOL) file:(NSString*)path conformsToUTI:(NSString*)uti;
24 - (BOOL) file:(NSString*)path confromsToUTIInArray:(NSArray*)anArray;
25
26 - (short) finderLabelColorForFile:(NSString*)inPath;
27 - (BOOL) setLabel:(short)labelNum forFile:(NSString*)path;
28
29 - (BOOL) fileIsVCF:(NSString*)filePath;
30 - (BOOL) fileIsClipping:(NSString*)filePath;
31
32 - (BOOL) moveToTrash:(NSString*)path;
33 - (NSString*) resolveForAliases:(NSString*)path;
34 - (BOOL) createAliasForPath:(NSString*)targetPath toPath:(NSString*)destinationPath;
35
36 - (NSString*) mdTitleForFile:(NSString*)filename;
37 - (NSString*) mdTitleAndComposerForAudioFile:(NSString*)filename;
38
39 - (BOOL) canPlayFile:(NSString*)filename;
40 - (BOOL) canWatchFile:(NSString*)filename;
41 - (BOOL) canViewFile:(NSString*)filename;
42
43 @end
Something went wrong with that request. Please try again.