[Mono-bugs] [Bug 63684][Nor] New - Empty enum NSPropertyListFormat, plus nonworking NSPropertyListSerialization.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 23 Aug 2004 11:10:24 -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 l0ne@email.it.
http://bugzilla.ximian.com/show_bug.cgi?id=63684
--- shadow/63684 2004-08-23 11:10:23.000000000 -0400
+++ shadow/63684.tmp.17002 2004-08-23 11:10:23.000000000 -0400
@@ -0,0 +1,36 @@
+Bug#: 63684
+Product: Cocoa#
+Version: 0.1
+OS:
+OS Details: Mac OS X 10.3.5 (upgrade from 10.2.8)
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Bindings.
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: l0ne@email.it
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Empty enum NSPropertyListFormat, plus nonworking NSPropertyListSerialization.
+
+The NSPropertyListFormat enum is empty. This prevents use of NSPropertyListSerialization. Also,
+if NSPropertyListSerialization is used (by "force feeding" integer values to the
+NSPropertyListFormat parameter), an exception is thrown by the cocoa# bridge.
+
+extra simple test case:
+
+string error;
+object a =
+NSPropertyListSerialization.PropertyListFromData_mutabilityOption_format_errorDescription(
+ new NSData("Items = { a = b; };"),
+NSPropertyListMutabilityOptions.NSPropertyListImmutable,
+ /* in place of NSPropertyListFormat */ 0, error);
+
+The 'dict' object should be a NSDictionary whose only key is Items and whose only object is a
+NSDictionary, with a single key of "a" and a single item of "b" (both strings).
+
+PS Also note that the "error" parameter, in cocoa, should have been &error (ref error in c#), but
+the API does not allow byref parameters.