title: Why won't my awakeFromNib fire?
body: <p>I am starting to move more of my view hierarchy construction to IB. </p>
  
  <p>I have a nib file called "AlignmentViewController.xib" in which I set up my view hierarchy with AlignmentViewController as the files owner. This works fine.</p>
  
  <p>One of the methods I remain fuzzy on is awakeFromNib. In the follow code snippet of AlignmentViewController I add the single additional method awakeFromNib. However, it does NOT get called:</p>
  
  <pre><code>- (void)awakeFromNib {
  
     NSLog(@"AlignmentViewController - awakeFromNib");
     [super awakeFromNib];
  
  }
  
  - (id)initWithChromosomeName:(NSString *)chromosomeName 
                 basepairStart:(NSUInteger)basepairStart 
                   basepairEnd:(NSUInteger)basepairEnd {
  
      self = [self initWithNibName:@"AlignmentViewController" bundle:nil];
  
      if (nil != self) {
  
  
          self.title          = @"Alignment";
  
          self.chromosomeName = chromosomeName;
          self.basepairStart  = basepairStart;
          self.basepairEnd    = basepairEnd;
  
          self.wantsFullScreenLayout = YES;
  
      }
  
      return self;
  }
  </code></pre>
  
  <p>Can someone clarify for me what I have missed here?</p>
  
  <p>Cheers,
  Doug</p>
  
  <p>UPDATE:
  After reading some the the answers I realize I need to get to the bottom of something that is pretty fundamental. </p>
  
  <p>Looking at the initialization:</p>
  
  <pre><code>- (id)initWithChromosomeName:(NSString *)chromosomeName 
                 basepairStart:(NSUInteger)basepairStart 
                   basepairEnd:(NSUInteger)basepairEnd {
  
      self = [self initWithNibName:@"AlignmentViewController" bundle:nil];
  </code></pre>
  
  <p>I notice I am calling initWithNibName:bundle: indirectly. Is this bad practice? The AlignmentViewController.xib file defines my view hierarchy. But I'm not really using initWithNibName:bundle: in the typical way? Is there a better way to do this?</p>