public bool LoadNibFile(string nibname) { Dictionary dict = new Dictionary ("NSOwner", Application.SharedApplication); return (bool)ObjCMessaging.objc_msgSend (NativeObject, "loadNibFile:externalNameTable:withZone:", typeof (bool), typeof (System.IntPtr), new Cocoa.String (nibname).NativeObject, typeof (System.IntPtr), dict.NativeObject, typeof (System.IntPtr), Application.SharedApplication.Zone); }
public static void LoadNib(string nibname) { Dictionary dict = new Dictionary ("NSOwner", Application.SharedApplication); ObjCMessaging.objc_msgSend ((IntPtr) ObjCClass.FromType (typeof (Bundle)).ToIntPtr (), "loadNibFile:externalNameTable:withZone:", typeof (bool), typeof (System.IntPtr), new Cocoa.String (nibname).NativeObject, typeof (System.IntPtr), dict.NativeObject, typeof (System.IntPtr), Application.SharedApplication.Zone); ObjCMessaging.objc_msgSend ((IntPtr) ObjCClass.FromType (typeof (Bundle)).ToIntPtr (), "loadNibNamed:owner:", typeof (bool), typeof (System.IntPtr), new Cocoa.String (nibname).NativeObject, typeof (System.IntPtr), Application.SharedApplication.NativeObject); }