forked from murci/Simple-Comic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSS_PreferencePaneProtocol.h
51 lines (30 loc) · 1.71 KB
/
SS_PreferencePaneProtocol.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
#import <Cocoa/Cocoa.h>
@protocol SS_PreferencePaneProtocol
// preferencePanes is called whenever the calling application wants to instantiate preference panes.
// This method returns an array of preference pane instances. This array is autoreleased,
// so the calling application needs to retain whatever it wants to keep.
// If no instances were generated, this returns nil.
+ (NSArray *)preferencePanes;
// paneView returns a preference pane's view. This must not be nil.
- (NSView *)paneView;
// paneName returns the name associated with a preference pane's view.
// This is used as the label of the pane's toolbar item in the Preferences window,
// and as the title of the Preferences window when the pane is selected.
// This must not be nil or an empty string.
- (NSString *)paneName;
- (NSString *)paneIdentifier;
// paneIcon returns a preference pane's icon as an NSImage.
// The icon will be scaled to the default size for a toolbar icon (if necessary),
// and shown in the toolbar in the Preferences window.
- (NSImage *)paneIcon;
// paneToolTip returns the ToolTip to be used for a preference pane's icon in the
// Preferences window's toolbar. You can return nil or an empty string to disable
// the ToolTip for this preference pane.
- (NSString *)paneToolTip;
// allowsHorizontalResizing and allowsVerticalResizing determine whether the Preferences window
// will be resizable in the respective directions when the receiver is the visible preference
// pane. The initial size of the receiver's view will be used as the minimum size of the
// Preferences window.
- (BOOL)allowsHorizontalResizing;
- (BOOL)allowsVerticalResizing;
@end