Cocoa.Bundle.LoadNib C# (CSharp) Method

LoadNib() public static method

public static LoadNib ( string nibname ) : void
nibname string
return void
        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);
        }

Usage Example

 public static void LoadNib(string nibname)
 {
     Bundle.LoadNib(nibname);
 }