Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 91463c0265
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 49 lines (38 sloc) 1.774 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
/*******************************************************************************
BDAlias.h
Copyright (c) 2001-2002 bDistributed.com, Inc.
Copyright (c) 2002-2009 BDAlias developers
Some rights reserved: <http://opensource.org/licenses/mit-license.php>

***************************************************************************/

#import <Foundation/Foundation.h>
#import <CoreServices/CoreServices.h>

@interface BDAlias : NSObject
{
    AliasHandle _alias;
}

- (id)initWithAliasHandle:(AliasHandle)alias; // designated initializer
- (id)initWithData:(NSData *)data;
- (id)initWithPath:(NSString *)fullPath;
- (id)initWithPath:(NSString *)fullPath error:(NSError **)outError;
- (id)initWithPath:(NSString *)path relativeToPath:(NSString *)relPath;
- (id)initWithFSRef:(FSRef *)ref;
- (id)initWithFSRef:(FSRef *)ref error:(NSError **)outError;
- (id)initWithFSRef:(FSRef *)ref relativeToFSRef:(FSRef *)relRef;
- (id)initWithFSRef:(FSRef *)ref relativeToFSRef:(FSRef *)relRef error:(NSError **)outError;
- (id)initWithCoder:(NSCoder *)coder;
- (void)encodeWithCoder:(NSCoder*)coder;

- (void)dealloc;

- (AliasHandle)alias;
- (void)setAlias:(AliasHandle)newAlias;

- (NSData *)aliasData;
- (void)setAliasData:(NSData *)newAliasData;

- (NSString *)fullPath;
- (NSString *)fullPathRelativeToPath:(NSString *)relPath;

+ (BDAlias *)aliasWithAliasHandle:(AliasHandle)alias;
+ (BDAlias *)aliasWithData:(NSData *)data;
+ (BDAlias *)aliasWithPath:(NSString *)fullPath;
+ (BDAlias *)aliasWithPath:(NSString *)fullPath error:(NSError **)outError;
+ (BDAlias *)aliasWithPath:(NSString *)path relativeToPath:(NSString *)relPath;
+ (BDAlias *)aliasWithFSRef:(FSRef *)ref;
+ (BDAlias *)aliasWithFSRef:(FSRef *)ref relativeToFSRef:(FSRef *)relRef;

@end
Something went wrong with that request. Please try again.