aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-05-27 08:18:41 +1000
committernyamatongwe <devnull@localhost>2011-05-27 08:18:41 +1000
commit7220304e7ced9088a17b8d8df5eed096b80193a2 (patch)
tree29f29371bac466f801770973153e13a1470700d4
parent0aee9102fb7ea00ab634ed2c2de274774ea41b87 (diff)
downloadscintilla-mirror-7220304e7ced9088a17b8d8df5eed096b80193a2.tar.gz
Expose registerNotifyCallback on ScintillaView class.
From Elizabeth Irizarry of Adobe.
-rw-r--r--cocoa/ScintillaView.h2
-rw-r--r--cocoa/ScintillaView.mm11
2 files changed, 13 insertions, 0 deletions
diff --git a/cocoa/ScintillaView.h b/cocoa/ScintillaView.h
index 9073be4ae..3194e9d29 100644
--- a/cocoa/ScintillaView.h
+++ b/cocoa/ScintillaView.h
@@ -127,6 +127,8 @@ extern NSString *SCIUpdateUINotification;
- (void) setLexerProperty: (NSString*) name value: (NSString*) value;
- (NSString*) getLexerProperty: (NSString*) name;
+- (void) registerNotifyCallback: (intptr_t) windowid value: (Scintilla::SciNotifyFunc) callback;
+
- (void) setInfoBar: (NSView <InfoBarCommunicator>*) aView top: (BOOL) top;
- (void) setStatusText: (NSString*) text;
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm
index d451c374f..09f290b1e 100644
--- a/cocoa/ScintillaView.mm
+++ b/cocoa/ScintillaView.mm
@@ -1366,6 +1366,17 @@ static void notification(intptr_t windowid, unsigned int iMessage, uintptr_t wPa
//--------------------------------------------------------------------------------------------------
/**
+ * Sets the notification callback
+ */
+- (void) registerNotifyCallback: (intptr_t) windowid value: (Scintilla::SciNotifyFunc) callback
+{
+ mBackend->RegisterNotifyCallback(windowid, callback);
+}
+
+
+//--------------------------------------------------------------------------------------------------
+
+/**
* Sets the new control which is displayed as info bar at the top or bottom of the editor.
* Set newBar to nil if you want to hide the bar again.
* When aligned to bottom position then the info bar and the horizontal scroller share the available