forked from erkyrath/Inform7-IDE-Mac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIFViewTrackingWindowController.h
33 lines (25 loc) · 1.07 KB
/
IFViewTrackingWindowController.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
//
// IFViewTrackingWindowController.h
// Inform-xc2
//
// Created by Andrew Hunter on 01/02/2009.
// Copyright 2009 Andrew Hunter. All rights reserved.
//
#import <Cocoa/Cocoa.h>
///
/// Window controller that creates a window that tracks the specified view
///
@interface IFViewTrackingWindowController : NSWindowController {
NSView* targetView; // The view that is to be tracked
IBOutlet NSView* contentView; // The view that represents the contents of the window
NSWindow* targetWindow; // The target window
int showCount; // Number of times 'show window' has been called
int hideCount; // Number of times 'hide window' has been called
BOOL waitingToShowOrHide; // Whether or not a show/hide event is waiting
}
- (id) initWithView: (NSView*) targetView
inWindow: (NSWindow*) targetWindow;
- (NSView*) contentView; // The content view that is displayed in this tracker
- (void) setContentView: (NSView*) contentView;
- (IBAction) hideWindow: (id) sender; // Causes this tracking window to be hidden
@end