MonobjcMonobjc Documented Class Library
InstantiateNibWithOwnerTopLevelObjects Method (owner, topLevelObjects)
NamespacesMonobjc.AppKitNSNibInstantiateNibWithOwnerTopLevelObjects(Id, NSArray%)

Unarchives and instantiates the in-memory contents of the receiver's nib file, creating a distinct object tree and set of top level objects.

Original signature is '- (BOOL)instantiateNibWithOwner:(id)owner topLevelObjects:(NSArray **)topLevelObjects'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool InstantiateNibWithOwnerTopLevelObjects(
	Id owner,
	out NSArray topLevelObjects
)
Public Overridable Function InstantiateNibWithOwnerTopLevelObjects ( _
	owner As Id, _
	<OutAttribute> ByRef topLevelObjects As NSArray _
) As Boolean
public:
virtual bool InstantiateNibWithOwnerTopLevelObjects(
	Id^ owner, 
	[OutAttribute] NSArray^% topLevelObjects
)
Parameters
owner (Id)
The object to use as the owner of the nib file. If the nib file has an owner, you must specify a valid object for this parameter.
topLevelObjects (NSArray%)
On input, a variable capable of holding an NSArray object. On output, this variable contains an autoreleased NSArray object containing the top-level objects from the nib file. You may specify nil for this parameter if you are not interested in the top-level objects.
Return Value
YES if the nib file's contents were instantiated successfully; otherwise, NO.
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)