diff options
author | nyamatongwe <unknown> | 2013-01-04 19:40:02 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-01-04 19:40:02 +1100 |
commit | b36c94ce6b0001c32601d85eeddf3f0752388520 (patch) | |
tree | 8977a48865b83e8977ce76addc9e3efdcc692451 /cocoa/ScintillaView.h | |
parent | 416af687221c7dfdba0e7835ae55b3927d9dd5c6 (diff) | |
download | scintilla-mirror-b36c94ce6b0001c32601d85eeddf3f0752388520.tar.gz |
Implement a delegate for Scintilla notifications.
From Mike Lischke at Oracle.
Diffstat (limited to 'cocoa/ScintillaView.h')
-rw-r--r-- | cocoa/ScintillaView.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cocoa/ScintillaView.h b/cocoa/ScintillaView.h index b55591e80..8a028e2c4 100644 --- a/cocoa/ScintillaView.h +++ b/cocoa/ScintillaView.h @@ -22,6 +22,10 @@ extern NSString *SCIUpdateUINotification; +@protocol ScintillaNotificationProtocol +- (void)notification: (Scintilla::SCNotification*)notification; +@end + /** * InnerView is the Cocoa interface to the Scintilla backend. It handles text input and * provides a canvas for painting the output. @@ -70,10 +74,13 @@ extern NSString *SCIUpdateUINotification; NSView <InfoBarCommunicator>* mInfoBar; BOOL mInfoBarAtTop; int mInitialInfoBarWidth; + + id<ScintillaNotificationProtocol> mDelegate; } @property (nonatomic, assign) Scintilla::ScintillaCocoa* backend; @property (nonatomic, assign) NSObject* owner; +@property (nonatomic, assign) id<ScintillaNotificationProtocol> delegate; - (void) dealloc; - (void) positionSubViews; |