In most of the samples the return value from loadNibNamed
value is not used, so I guess it's using the owner argument. But how does it work and make the connection to the owner object? What kind of requirements should my owner class meet in order to load a nib in such way?
The only requirements I can guess is that
- the owner class must have an outlet defined on or many of the objects in the nib file
- the nib file's owner SHOULD be set to the class where the nib is being loaded, then the owner param in
loadNibNamed
can be set toself
- the nib file should have all connections set to outlets defined in owner class
Am I right in my assumptions or is there anything else I have to consider while using loadNibNamed
?