title: Use of type 'id' in cocoa class
body: <p>I want to implement a class which can be used by two classes of my project.</p>
  
  <p>One is manipulating 'NewsRecord' objects.
  One is manipulating 'GalleriesRecord' objects.</p>
  
  <p>In another class, I may use one of the two objects so i do something like that :</p>
  
  <pre><code>// header class
  id myNewsRecordOrGalleriesRecord;
  
  // class.m
  // NewsRecord and GalleriesRecord have both the title property
  NSLog(myNewsRecordOrGalleriesRecord.title);
  </code></pre>
  
  <p>and i get :</p>
  
  <pre><code>error : request for member 'title' in something not a structure or union
  </code></pre>
  
  <p>any ideas :D ?</p>
  
  <p>Thanks.</p>
  
  <p>Gotye</p>
  
  <p>How am I supposed to do it ?</p>