I’m interested in binding to iOS Foundation functions as seen in the iOS documentation but there aren’t any handles or instances to send a message to invoke them. How would I do this with MonoTouch? I would think that it would involve something within the MonoTouch.ObjCRuntime namespace.
I’m interested in binding to iOS Foundation functions as seen in the iOS documentation
Share
All of MonoTouch’s NS* objects implement the MonoTouch.ObjCRuntime.INativeObject interface which has a property getter called “Handle”. This accessor is public on NSObject and all subclasses.
Edit: code to bind
NSSetUncaughtExceptionHandler()will be something like this:Then you could use it like this: