Up

# NSNibLoading documentation

### Authors

Generated by root

### Contents -

1. Software documentation for the NSBundle(NSNibLoading) category
2. Software documentation for the NSObject(NSNibAwaking) informal protocol

# Software documentation for the NSBundle(NSNibLoading) category

## NSBundle(NSNibLoading)

> Declared in:
>   AppKit/NSNibLoading.h

Availability: OpenStep
Description forthcoming.
Method summary

- +loadNibFile:externalNameTable:withZone:
- +loadNibNamed:owner:
- -loadNibFile:externalNameTable:withZone:
- -loadNibNamed:owner:topLevelObjects:
- -pathForNibResource:

### loadNibFile: externalNameTable: withZone:

+ (BOOL) loadNibFile: (NSString*)fileName externalNameTable: (NSDictionary*)context withZone: (NSZone*)zone;
Availability: OpenStep
Load the model file specified by fileName using the existing context as the external name table. The name table contains NSOwner, NSMenu and other well known top level objects with zone as the current memory allocation zone. This method uses the current mainBundle.

### loadNibNamed: owner:

+ (BOOL) loadNibNamed: (NSString*)aNibName owner: (id)owner;
Availability: OpenStep
Load the model file specified by aNibName, using owner as the NSOwner. This method calls loadNibFile:externalNameTable:withZone:

### loadNibFile: externalNameTable: withZone:

- (BOOL) loadNibFile: (NSString*)fileName externalNameTable: (NSDictionary*)context withZone: (NSZone*)zone;
Availability: OpenStep
Load the model file specified by fileName, using the context dictionary to specify top level objects. This method uses whatever bundle instance it is called on. This method is called by +loadNibFile:externalNameTable:withZone:

### loadNibNamed: owner: topLevelObjects:

- (BOOL) loadNibNamed: (NSString*)aNibName owner: (id)owner topLevelObjects: (NSArray**)topLevelObjects;
Availability: MacOS-X 10.8.0
Loads the model file specified by aNibName with owner as NSOwner. The topLevelObjects array is a return parameter which returns a pointing to the topLevelObjects in this model.

### pathForNibResource:

- (NSString*) pathForNibResource: (NSString*)fileName;
Availability: Not in OpenStep/MacOS-X
Returns the path of the model specified by fileName.

# Software documentation for the NSObject(NSNibAwaking) informal protocol

## NSObject(NSNibAwaking)

> Declared in:
>   AppKit/NSNibLoading.h

Availability: OpenStep
Description forthcoming.
Method summary

- -awakeFromNib
- -prepareForInterfaceBuilder

### awakeFromNib

- (void) awakeFromNib;
Availability: OpenStep
Notification of Loading. This method is called on custom objects once model loading is completed.

### prepareForInterfaceBuilder

- (void) prepareForInterfaceBuilder;
Availability: MacOS-X 10.8.0
This method is called on a designable object to notify it that it was created at design time. This allows IB/Gorm to set up the appearance of the object when loaded into the editor.

Up