[MonoTouch] isMainThread
Ed Anuff
ed at anuff.com
Sun Nov 8 18:26:47 EST 2009
At the risk of minor duplicate effort, this seems to work:
public static IntPtr GetClassHandle(string clsName) {
return (new Class(clsName)).Handle;
}
public static bool isMainThread() {
return Messaging.bool_objc_msgSend(GetClassHandle("NSThread"), new
Selector("isMainThread").Handle);
}
On Sun, Nov 8, 2009 at 3:10 PM, Ed Anuff <ed at anuff.com> wrote:
> Is NSThread's isMainThread property available anywhere? Should I just
> do a manual binding?
>
More information about the MonoTouch
mailing list