Skip to content

UXRscAwaking

A protocol for objects that finish setting up after an rsc file load. From 0.7.

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

During init an rsc file-made object’s outlets are still null, because the loader connects them afterwards. UXRsc sends awakeFromRsc 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.

awakeFromRsc

void awakeFromRsc(void);

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