source: releases/Pester/1.1a1/Source/NDAppleScript/NDResourceFork.h@ 460

Last change on this file since 460 was 35, checked in by Nicholas Riley, 22 years ago

Nathan Day's NDAppleScript and related classes, somewhat modified.
Still need to commit Nathan's changes to NDResourceFork.

File size: 935 bytes
Line 
1/*
2 * NDResourceFork.h
3 * AppleScriptObjectProject
4 *
5 * Created by nathan on Wed Dec 05 2001.
6 * Copyright (c) 2001 Nathan Day. All rights reserved.
7 */
8
9#import <Foundation/Foundation.h>
10#import <Carbon/Carbon.h>
11
12@interface NDResourceFork : NSObject
13{
14 short fileReference;
15}
16
17+ (id)resourceForkForReadingAtURL:(NSURL *)aURL;
18+ (id)resourceForkForWritingAtURL:(NSURL *)aURL;
19+ (id)resourceForkForReadingAtPath:(NSString *)aPath;
20+ (id)resourceForkForWritingAtPath:(NSString *)aPath;
21
22- (id)initForReadingAtURL:(NSURL *)aURL;
23- (id)initForWritingAtURL:(NSURL *)aURL;
24- (id)initForReadingAtPath:(NSString *)aPath;
25- (id)initForWritingAtPath:(NSString *)aPath;
26- (id)initForPermission:(char)aPermission AtURL:(NSURL *)aURL;
27
28- (BOOL)addData:(NSData *)aData type:(ResType)aType Id:(short)anID name:(NSString *)aName;
29- (NSData *)dataForType:(ResType)aType Id:(short)anID;
30- (BOOL)removeType:(ResType)aType Id:(short)anID;
31
32@end
Note: See TracBrowser for help on using the repository browser.