title: iOS - member reference is a pointer?
body: <p>I am trying to assign a AVAudioPlayer to a property using this</p>
  
  <pre><code>NSURL *soundURL = [[NSBundle mainBundle] URLForResource:@"error"
                                            withExtension:@"aiff"];
  AVAudioPlayer *avSound = [[AVAudioPlayer alloc]
             initWithContentsOfURL:soundURL error:nil];
  self.soundError = avSound;
  </code></pre>
  
  <p>I am receiving an error on the last line saying: <strong>member reference type 'struct objc_class *' is a pointer; maybe you meant use '->' ?</strong></p>
  
  <p>the property is declared like</p>
  
  <pre><code>@property (nonatomic, strong) AVAudioPlayer *soundError;
  </code></pre>
  
  <p>pointer? I don't get it.</p>
  
  <p>thanks</p>