[Mono-osx] [MonoMac] DatePicker sample and patch
kjpou
kjpou at pt.lu
Fri Dec 31 13:22:52 EST 2010
Miguel
The NSColor.cs file is missing from the git sources so does not build.
After commenting out the NSColor.cs target and building here is what I
am getting.
Missing method
System.Reflection.Assembly::op_Inequality(Assembly,Assembly) in assembly
/Library/Frameworks/Mono.framework/Versions/2.8.1/lib/mono/2.0/mscorlib.dll,
referenced in assembly
/Volumes/Public/Development/Mono/MonoMac/AppleSamples/DatePicker/DatePicker/bin/Debug/DatePicker.app/Contents/Resources/MonoMac.dll
Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for MonoMac.AppKit.NSApplication --->
System.TypeInitializationException: An exception was thrown by the type
initializer for MonoMac.ObjCRuntime.Class --->
System.MissingMethodException: Method not found:
'System.Reflection.Assembly.op_Inequality'.
at MonoMac.ObjCRuntime.NativeMethodBuilder..ctor
(System.Reflection.MethodInfo minfo, System.Type type,
MonoMac.Foundation.ExportAttribute ea) [0x00000] in <filename unknown>:0
at MonoMac.ObjCRuntime.NativeMethodBuilder..ctor
(System.Reflection.MethodInfo minfo) [0x00000] in <filename unknown>:0
at MonoMac.ObjCRuntime.Class..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at MonoMac.AppKit.NSApplication..cctor () [0x00000] in <filename
unknown>:0
--- End of inner exception stack trace ---
at DatePicker.MainClass.Main (System.String[] args) [0x00000] in
<filename unknown>:0
Maybe the changes for ref and out type parameters is causing a little
problem.
Kenneth
On 12/31/10 5:52 PM, Miguel de Icaza wrote:
> Hello,
>
> The reason the events were removed was because the delegates are
> not being generated correctly for ref type parameters. This was
> the change that we discussed on the #monomac list about that. It
> was better to remove the events until it was fixed and just
> override in the code for the
> [Export("datePickerCell:validateProposedDateValue:timeInterval:")]
>
>
> I have now implemented this feature. I kept the event mappings and
> added the ref to the API definition.
>
> Would you mind taking a look at your sample and updating it if it
> needs to?
>
> Miguel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20101231/8afc8bc0/attachment.html
More information about the Mono-osx
mailing list