From 3effc9e6e4668dc6100d70e76a03a63d5248f7f0 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 15 Jun 2011 21:36:55 +1000 Subject: Made ScintillaCocoa::ContentView public so it can be used by ScintillaView and using hwndFrom to find view so idFrom can be used as it is on other platforms. --- cocoa/ScintillaView.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cocoa/ScintillaView.mm') diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index 2d9cdf6a2..5c14560a7 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -691,7 +691,8 @@ static void notification(intptr_t windowid, unsigned int iMessage, uintptr_t wPa { // Parent notification. Details are passed as SCNotification structure. SCNotification* scn = reinterpret_cast(lParam); - editor = reinterpret_cast(scn->nmhdr.idFrom).owner; + ScintillaCocoa *psc = reinterpret_cast(scn->nmhdr.hwndFrom); + editor = reinterpret_cast(psc->ContentView()).owner; switch (scn->nmhdr.code) { case SCN_MARGINCLICK: -- cgit v1.2.3