From b36c94ce6b0001c32601d85eeddf3f0752388520 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 4 Jan 2013 19:40:02 +1100 Subject: Implement a delegate for Scintilla notifications. From Mike Lischke at Oracle. --- cocoa/ScintillaView.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cocoa/ScintillaView.h') 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 * mInfoBar; BOOL mInfoBarAtTop; int mInitialInfoBarWidth; + + id mDelegate; } @property (nonatomic, assign) Scintilla::ScintillaCocoa* backend; @property (nonatomic, assign) NSObject* owner; +@property (nonatomic, assign) id delegate; - (void) dealloc; - (void) positionSubViews; -- cgit v1.2.3