Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 49 lines (38 sloc) 1.774 kB
54908dd @rentzsch [CHANGE] Change to MIT License. Update docs to README.markdown.
authored
1 /*******************************************************************************
2 BDAlias.h
91463c0 @rentzsch [CHANGE] Update copyright to better reflect the end of bDistributed.com.
authored
3 Copyright (c) 2001-2002 bDistributed.com, Inc.
4 Copyright (c) 2002-2009 BDAlias developers
54908dd @rentzsch [CHANGE] Change to MIT License. Update docs to README.markdown.
authored
5 Some rights reserved: <http://opensource.org/licenses/mit-license.php>
a20c6e7 [NEW] Add BDAlias.
rentzsch authored
6
54908dd @rentzsch [CHANGE] Change to MIT License. Update docs to README.markdown.
authored
7 ***************************************************************************/
a20c6e7 [NEW] Add BDAlias.
rentzsch authored
8
9 #import <Foundation/Foundation.h>
10 #import <CoreServices/CoreServices.h>
11
12 @interface BDAlias : NSObject
13 {
54908dd @rentzsch [CHANGE] Change to MIT License. Update docs to README.markdown.
authored
14 AliasHandle _alias;
a20c6e7 [NEW] Add BDAlias.
rentzsch authored
15 }
16
17 - (id)initWithAliasHandle:(AliasHandle)alias; // designated initializer
18 - (id)initWithData:(NSData *)data;
19 - (id)initWithPath:(NSString *)fullPath;
20 - (id)initWithPath:(NSString *)fullPath error:(NSError **)outError;
21 - (id)initWithPath:(NSString *)path relativeToPath:(NSString *)relPath;
22 - (id)initWithFSRef:(FSRef *)ref;
23 - (id)initWithFSRef:(FSRef *)ref error:(NSError **)outError;
24 - (id)initWithFSRef:(FSRef *)ref relativeToFSRef:(FSRef *)relRef;
25 - (id)initWithFSRef:(FSRef *)ref relativeToFSRef:(FSRef *)relRef error:(NSError **)outError;
26 - (id)initWithCoder:(NSCoder *)coder;
27 - (void)encodeWithCoder:(NSCoder*)coder;
28
29 - (void)dealloc;
30
31 - (AliasHandle)alias;
32 - (void)setAlias:(AliasHandle)newAlias;
33
34 - (NSData *)aliasData;
35 - (void)setAliasData:(NSData *)newAliasData;
36
37 - (NSString *)fullPath;
38 - (NSString *)fullPathRelativeToPath:(NSString *)relPath;
39
40 + (BDAlias *)aliasWithAliasHandle:(AliasHandle)alias;
41 + (BDAlias *)aliasWithData:(NSData *)data;
42 + (BDAlias *)aliasWithPath:(NSString *)fullPath;
43 + (BDAlias *)aliasWithPath:(NSString *)fullPath error:(NSError **)outError;
44 + (BDAlias *)aliasWithPath:(NSString *)path relativeToPath:(NSString *)relPath;
45 + (BDAlias *)aliasWithFSRef:(FSRef *)ref;
46 + (BDAlias *)aliasWithFSRef:(FSRef *)ref relativeToFSRef:(FSRef *)relRef;
47
48 @end
Something went wrong with that request. Please try again.