[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 14:58:46 -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-07 23:04:45.000000000 -0400
+++ shadow/62533.tmp.19078	2004-08-08 14:58:46.000000000 -0400
@@ -1,12 +1,12 @@
 Bug#: 62533
 Product: Cocoa#
 Version: 0.1
 OS: Mac OS X 10.3
 OS Details: 10.3.4
-Status: ASSIGNED   
+Status: RESOLVED   
 Resolution: 
 Severity: Unknown
 Priority: Major
 Component: Bindings.
 AssignedTo: umuff@quark.com                            
 ReportedBy: jake.macmullin@csiro.au               
@@ -262,6 +262,18 @@
         op.runModalForTypes(null);
 Once we fixed this bug you will write:
         NSOpenPanel op = new NSOpenPanel();
         op.init();
         op.runModalForTypes(null);
 
+
+------- Additional Comments From grompf@sublimeintervention.com  2004-08-08 14:58 -------
+Please note; the following two ways of working around this are much better:
+
+ NSOpenPanel op = NSOpenPanel.OpenPanel;
+
+_OR_
+  NSOpenPanel op = new NSOpenPanel(new NSRect(200, 180, 300, 300),
+                                        (uint)(NSWindowMask.NSMiniaturizableWindowMask | 
+NSWindowMask.NSClosableWindowMask | NSWindowMask.NSTitledWindowMask),
+                                        NSBackingStoreType.NSBackingStoreBuffered,
+                                        false);