title: Order of awakeFromNib, applicationWillFinishLaunching, and applicationDidFinishLaunching?
body: <p>Assume a default Xcode Cocoa app template where the App Delegate is in the main XIB file.</p>
  
  <p>Of course, <code>applicationWillFinishLaunching:</code> is called before <code>applicationDidFinishLaunching:</code>.</p>
  
  <p>Why is <code>awakeFromNib</code> being called <strong>before</strong> <code>applicationWillFinishLaunching:</code>?</p>
  
  <p>The docs for <a href="https://developer.apple.com/library/mac/documentation/Cocoa/Reference/NSApplicationDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/NSApplicationDelegate/applicationWillFinishLaunching%3a" rel="nofollow"><code>applicationWillFinishLaunching:</code></a> say this:</p>
  
  <blockquote>
    <p>Sent by the default notification center immediately before the application object is initialized.</p>
  </blockquote>
  
  <p>Why does this not contradict <code>awakeFromNib</code> being called <strong>before</strong> <code>applicationWillFinishLaunching:</code>?</p>
  
  <p>Can I rely on this order?</p>