forked from erkyrath/Inform7-IDE-Mac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIFRuntimeErrorParser.h
33 lines (25 loc) · 971 Bytes
/
IFRuntimeErrorParser.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
//
// IFRuntimeErrorParser.h
// Inform-xc2
//
// Created by Andrew Hunter on 10/10/2005.
// Copyright 2005 Andrew Hunter. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <ZoomView/ZoomView.h>
#import <GlkView/GlkView.h>
///
/// Natural Inform (or Inform 7 as it's now more officially known) can produce runtime errors.
/// This class implements a Zoom output receiver that parses these out and reports them to a
/// delegate method.
///
@interface IFRuntimeErrorParser : NSObject<GlkAutomation> {
id delegate; // The delegate
NSMutableString* accumulator; // The character accumulator
}
- (void) outputText: (NSString*) outputText; // Called by Zoom when output is generated
- (void) setDelegate: (id) delegate; // Sets the delegate for this object. The delegate is not retained.
@end
@interface NSObject(IFRuntimeErrorParserDelegate)
- (void) runtimeError: (NSString*) error; // Called when a runtime problem occurs in the output
@end