示例#1
0
 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);
 }
示例#2
0
 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);
 }