-
Notifications
You must be signed in to change notification settings - Fork 1
/
OptionSheetController.h
64 lines (52 loc) · 1.7 KB
/
OptionSheetController.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//
// OptionSheetController.h
// NetworkLocation
//
// Created by Chris Farber on 9/24/06.
// Copyright 2006 Chris Farber. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "NLAction.h"
@class NLAction;
/**
* OptionSheetController serves two purposes: loading and managing the nib containing
* the options interface for an action, and providing bindings access to the action's
* options.
*
* You can subclass OptionSheetController to provide controller code for more complex
* interfaces. Don't touch other methods, just create your own for use with the
* interface.
*/
@interface OptionSheetController : NSWindowController {
NLAction * action;
NSBundle * nibBundle;
NSMutableDictionary * options;
NSWindow * parentWindow;
@private
id target;
SEL selector;
id contextInfo;
BOOL cancelled;
BOOL deleteIfCancelled;
}
@property (readonly) NLAction * action;
@property (readonly) NSBundle * nibBundle;
@property (readonly) NSMutableDictionary * options;
@property (readonly) NSWindow * parentWindow;
+ (id)optionSheetControllerWithNibName:(NSString *)nibName
inBundle:(NSBundle *)bundle
forAction:(NLAction *)anAction;
- (id)initWithWindowNibName:(NSString *)nibName inBundle:(NSBundle *)bundle
forAction:(NLAction *)anAction;
- (BOOL)cancelled;
- (void)setDeleteIfCancelled:(BOOL)deleteIfCancelled;
- (BOOL)deleteIfCancelled;
- (id)contextInfo;
- (void)closeSheet;
- (IBAction)cancel:(id)sender;
- (IBAction)setOptions:(id)sender;
- (void)setTarget:(id)aTarget selector:(SEL)aSelector
contextInfo:(id)context;
- (void)showSheetOnWindow:(NSWindow *)window;
- (void)showSheetAgain;
@end