I'm writing a Cocoa application that loads data from a file. This involves overriding readFromData:ofType:error:. I'm curious about how people deal with outlets not yet being connected when readFromData:ofType:error: is called. The documentation from Apple states this:
... you must remember that the NSDocument data-reading methods, such as readFromData:ofType:error:, are called before the document’s user interface objects contained in its nib file are loaded. Of course, you cannot send messages to user interface objects until after the nib file loads.
What's the benefit of loading the UI objects after readFromData:ofType:error: is called? I assume this loading order is the reason my outlets are nil. Since the outlets are not yet loaded, I'm finding that I need create extra copies of variables to store data that would then get stored in those UI elements that are created after this method ends.