http://bugzilla.novell.com/show_bug.cgi?id=576775
http://bugzilla.novell.com/show_bug.cgi?id=576775#c2 --- Comment #2 from Zachary Griswold <[email protected]> 2010-02-19 22:10:12 UTC --- "I haven't tested passing a C# delegate to a native C function to see if C->C# via a delegate->function pointer works (via Marshal.GetFunctionPointerForDelegate)." That answers the second part to my question, glad to hear it works :) "You can only pinvoke static delegates, and you must decorate the target with a special attribute to teach the AOT compiler how to compile the wrappers" So to answer the first part of my question, there is no support (or plans thereof) to support something like the following: ----------------------- public delegate int InstanceAdder(IntPtr obj, IntPtr sel, int x, int y); [DllImport(MonoTouch.Constants.ObjectiveCLibrary, EntryPoint="objc_msgSend")] public static extern InstanceAdder InstanceAdder_objc_msgSend_sel(IntPtr obj, IntPtr sel, IntPtr arg1); ----------------------- Thanks! -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
