diff options
author | nyamatongwe <devnull@localhost> | 2013-01-04 19:40:02 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-01-04 19:40:02 +1100 |
commit | be25bdf8fc94b62915cab45694af7661041ca88c (patch) | |
tree | cede74889dd06b59a88047b454025f0f6f2f5184 /cocoa/ScintillaView.h | |
parent | 47eb10237c8500ea2ff7c416cb33f14b28dbfe65 (diff) | |
download | scintilla-mirror-be25bdf8fc94b62915cab45694af7661041ca88c.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; |