Skip to content
This is the documentation for xc 0.7. The current documentation describes the newest version.

UXNibAwaking

A protocol for objects that finish setting up after a nib load.

#import "UXNib.xc"
class LibraryController : Object<UXNibAwaking>
{
outlet UXTableView* table;
void awakeFromNib(void)
{
table.reloadData(); // the outlet is connected by now
}
}

During init a nib-made object’s outlets are still null, because the loader connects them afterwards. UXNib sends awakeFromNib when every connection of the load is made: first to the top-level objects, then to the views, then to File’s Owner.

An object that does not conform is not sent anything.

awakeFromNib

void awakeFromNib(void);

Called once per load, after all of that load’s connections.