title: iphone cocoa "error:request for member ____ in something not a structure or union"
body: <p>this way works:</p>
  
  <pre><code>type1ViewController *viewController = [[type1ViewController alloc] initWithNibName:@"Type1View" bundle:nil];
  viewController.parentViewController = self;
  self.type1ViewController = viewController;
  [self.view insertSubview:viewController.view atIndex:0];
  [viewController release];
  </code></pre>
  
  <p>but this way gives me the error, "request for member parentViewController in something not a structure or union":</p>
  
  <pre><code>type1ViewController *viewController = [[type1ViewController alloc] initWithNibName:@"Type1View" bundle:nil];
  self.type1ViewController = viewController;
  self.type1ViewController.parentViewController = self;
  [self.view insertSubview:viewController.view atIndex:0];
  [viewController release];
  </code></pre>
  
  <p>I don't see why it should be different.  What does the compiler see that it does not like?
  Thanks for your help in advance</p>