[Mono-bugs] [Bug 62533][Maj] Changed - Crashes when calling runModalForTypes(null); on NSOpenPanel
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 8 Aug 2004 15:38:53 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by grompf@sublimeintervention.com.
http://bugzilla.ximian.com/show_bug.cgi?id=62533
--- shadow/62533 2004-08-08 15:23:17.000000000 -0400
+++ shadow/62533.tmp.19250 2004-08-08 15:38:53.000000000 -0400
@@ -302,6 +302,29 @@
_delegate = new BridgeDelegate(this.MethodInvoker);
SetRaw(DotNetForwarding_initWithManagedDelegate(Raw,_delegate),_release);
It should resolve this issue going forward.
+
+------- Additional Comments From grompf@sublimeintervention.com 2004-08-08 15:38 -------
+Err rather; that wont work; but this should (passes tests on new NSOpenPanel() and
+running monodoc)
+
+Index: NSObject.addin
+=======================================================
+============
+RCS file: /cvs/public/cocoa-sharp/generator/custom/Foundation/NSObject.addin,v
+retrieving revision 1.27
+diff -u -r1.27 NSObject.addin
+--- NSObject.addin 24 Jul 2004 16:31:06 -0000 1.27
++++ NSObject.addin 8 Aug 2004 18:22:11 -0000
+@@ -143,6 +143,8 @@
+ if (class_getInstanceMethod(cls,
+NSString.NSSelector("initWithManagedDelegate:")) != IntPtr.Zero) {
+ _delegate = new BridgeDelegate(this.MethodInvoker);
+
+SetRaw(DotNetForwarding_initWithManagedDelegate(Raw,_delegate),_release);
++ } else {
++ SetRaw(NSObject_init0(Raw), true);
+ }
+ }