dp51
2009-05-24 02:32:27 UTC
Hi,
I'm using intel Mac OS 10.4.11, Xcode 2.5, and wxWidgets 2.9.0 RC3 compiled
with
--enable-debug --with-osx_cocoa --disable-shared.
I made 2 plugins that are statically linked to wxWidgets. Whenever I load
them one
after the other, the 2nd one will just show a blank window with no controls.
I think
the controls are there, but the window is not receiving any events (no
key/mouse
events are received). I think the problem is related to this discussion:
http://www.nabble.com/Obj-C-%22class-unifiying%22--tp10823109p10826917.html
I debugged one of my plugins and I noticed that the wxNSView initialize
method is never
called if it's the 2nd wxWidgets plugin to be loaded. I bypassed initialize
and called
wxOSXCocoaClassAddWXMethods() in wxWidgetImpl::CreateContentView() and now
the problem is gone. But, I'm afraid that somewhere down the line I'll run
into a similar
problem with some other static class method.
Is there an easier fix or a compiler flag to disable this Objective-C
behavior?
Please understand that I'm VERY new to Objective-C. Thanks,
Davis
I'm using intel Mac OS 10.4.11, Xcode 2.5, and wxWidgets 2.9.0 RC3 compiled
with
--enable-debug --with-osx_cocoa --disable-shared.
I made 2 plugins that are statically linked to wxWidgets. Whenever I load
them one
after the other, the 2nd one will just show a blank window with no controls.
I think
the controls are there, but the window is not receiving any events (no
key/mouse
events are received). I think the problem is related to this discussion:
http://www.nabble.com/Obj-C-%22class-unifiying%22--tp10823109p10826917.html
I debugged one of my plugins and I noticed that the wxNSView initialize
method is never
called if it's the 2nd wxWidgets plugin to be loaded. I bypassed initialize
and called
wxOSXCocoaClassAddWXMethods() in wxWidgetImpl::CreateContentView() and now
the problem is gone. But, I'm afraid that somewhere down the line I'll run
into a similar
problem with some other static class method.
Is there an easier fix or a compiler flag to disable this Objective-C
behavior?
Please understand that I'm VERY new to Objective-C. Thanks,
Davis
--
View this message in context: http://www.nabble.com/wxNSView-%2Binitialize-doesn%27t-work-with-multiple-plugins-tp23690111p23690111.html
Sent from the wxWidgets - Users mailing list archive at Nabble.com.
View this message in context: http://www.nabble.com/wxNSView-%2Binitialize-doesn%27t-work-with-multiple-plugins-tp23690111p23690111.html
Sent from the wxWidgets - Users mailing list archive at Nabble.com.