forked from erkyrath/Inform7-IDE-Mac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIFProgress.h
43 lines (33 loc) · 812 Bytes
/
IFProgress.h
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
//
// IFProgress.h
// Inform
//
// Created by Andrew Hunter on 28/11/2004.
// Copyright 2004 Andrew Hunter. All rights reserved.
//
#import <Cocoa/Cocoa.h>
//
// A progress indicator object
//
@interface IFProgress : NSObject {
float percentage;
NSString* message;
id delegate;
}
// Setting the current progress
- (void) setPercentage: (float) newPercentage;
- (void) setMessage: (NSString*) newMessage;
- (float) percentage;
- (NSString*) message;
// Setting the delegate
- (void) setDelegate: (id) delegate;
@end
//
// Progress indicator delegate methods
//
@interface NSObject(IFProgressDelegate)
- (void) progressIndicator: (IFProgress*) indicator
percentage: (float) newPercentage;
- (void) progressIndicator: (IFProgress*) indicator
message: (NSString*) newMessage;
@end