MonobjcMonobjc Documented Class Library
InitWithNibNameBundle Method (nibNameOrNil, nibBundleOrNil)
NamespacesMonobjc.AppKitNSViewControllerInitWithNibNameBundle(NSString, NSBundle)

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

Original signature is '- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithNibNameBundle(
	NSString nibNameOrNil,
	NSBundle nibBundleOrNil
Public Overridable Function InitWithNibNameBundle ( _
	nibNameOrNil As NSString, _
	nibBundleOrNil As NSBundle _
) As Id
virtual Id^ InitWithNibNameBundle(
	NSString^ nibNameOrNil, 
	NSBundle^ nibBundleOrNil
nibNameOrNil (NSString)
The name of the nib file, without any leading path information.
nibBundleOrNil (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 NSViewController 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)