Skip to content

Instantly share code, notes, and snippets.

@mandel-macaque
Created March 22, 2017 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mandel-macaque/8a45b680c6c8cdf3e2a8abbe0cfd95e9 to your computer and use it in GitHub Desktop.
Save mandel-macaque/8a45b680c6c8cdf3e2a8abbe0cfd95e9 to your computer and use it in GitHub Desktop.
Full example:
binding:
[DllImport ("/usr/lib/libobjc.dylib")]
static extern IntPtr objc_msgSend (IntPtr obj, IntPtr selector, IntPtr format, IntPtr arg0, IntPtr arg1, IntPtr arg2, IntPtr arg3, ...);
Usage:
IntPtr obj = objc_msgSend (new Class (typeof (CLKTextProvider)).Handle, Selector.GetHandle ("textProviderWithFormat:"), format, arg0, arg1, ...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment