-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSWBufferedPipe.h
More file actions
35 lines (26 loc) · 840 Bytes
/
SWBufferedPipe.h
File metadata and controls
35 lines (26 loc) · 840 Bytes
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
//
// SWBufferedPipe.h
// This file is part of the "SWApplicationSupport" project, and is distributed under the MIT License.
//
// Created by Samuel Williams on 29/03/08.
// Copyright 2008 Samuel Williams. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface SWBufferedPipe : NSObject {
NSPipe * pipe;
NSMutableData * data;
NSFileHandle * handle;
id delegate;
}
- initWithPipe: (NSPipe *) pipe;
- init;
@property(readonly,retain) NSPipe * pipe;
@property(readonly,retain) NSMutableData * data;
@property(assign) id delegate;
- (void) readInBackgroundAndNotify;
- (void) readToEndOfFileInBackgroundAndNotify;
@end
@interface NSObject (SWBufferedPipeDelegate)
- (void) bufferedPipe: (SWBufferedPipe*)buffer dataAvailable: (NSData*)data;
- (void) bufferedPipe: (SWBufferedPipe*)buffer dataFinished: (NSData*)data;
@end