jwiegley / runner

A script (CLI) wrapper for OS X. Allows scripts to run in their own configurable windows.

This URL has Read+Write access

jwiegley (author)
Sat Aug 30 13:23:18 -0700 2008
commit  a5944ed221b87ed387a43afa2c6e4f400d9ddc53
tree    884df6fe76dfd61084e5eaf0ca0d1c9e6122bbaa
parent  934a55ef3e9ae78b0bac7d97d6b164908b8a9611
runner / MyWindowController.h
100644 30 lines (23 sloc) 0.673 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
/* MyWindowController */
 
#import <Cocoa/Cocoa.h>
#import <Foundation/NSTask.h>
#import <Foundation/NSFileHandle.h>
 
@interface MyWindowController : NSWindowController
{
  IBOutlet NSTextView * outputView;
  IBOutlet NSButton * pauseButton;
  IBOutlet NSButton * cycleButton;
  IBOutlet NSTextField * statusText;
 
  NSTask * task;
  BOOL isSuspended;
  NSPipe * taskPipe;
  NSFileHandle * readHandle;
  NSDictionary * scriptProps;
}
 
- (void)windowDidResize:(NSNotification *)aNotification;
 
- (IBAction)pause:(id)sender;
- (IBAction)cycle:(id)sender;
- (IBAction)quit:(id)sender;
 
- (void)readDetailsForScript:(NSString *)path;
- (void)startTask;
@end