MonobjcMonobjc Documented Class Library
NSNib Constructor (nibName, bundle)
NamespacesMonobjc.AppKitNSNibNSNib(NSString, NSBundle)

Returns an NSNib object initialized to the nib file in the specified bundle.

Original signature is '- (id)initWithNibNamed:(NSString *)nibName bundle:(NSBundle *)bundle'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSNib(
	NSString nibName,
	NSBundle bundle
)
Public Sub New ( _
	nibName As NSString, _
	bundle As NSBundle _
)
public:
NSNib(
	NSString^ nibName, 
	NSBundle^ bundle
)
Parameters
nibName (NSString)
The name of the nib file, without any leading path information. Inclusion of the .nib extension on the nib file name is optional.
bundle (NSBundle)
The bundle in which to search for the nib file. If you specify nil, this method looks for the nib file in the main bundle.
Return Value
The initialized NSNib object or nil if there were errors during initialization or the nib file could not be located.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)