title: Objective C question: method won't return a string
body: <p>This is my first question so please forgive me if it's obvious.  I learned to program in Pascal a few years ago, so my terminology may be off.  I've looked at a bunch of postings, but nothing seems to address my basic problem.</p>
  
  <p>I have a lookup table that I use to convert decimals back into fractions.  I am calling this method...</p>
  
  <pre><code>-(void) convertToFractions:(float *)float2 aString:(NSMutableString *) myString;
  </code></pre>
  
  <p>...with this..</p>
  
  <pre><code>[self convertToFractions:&amp;float1 aString:outputFraction]; 
  </code></pre>
  
  <p>The idea is that <code>float2</code> is the decimal that I pass to the method, and <code>myString</code> is the fraction returning.  </p>
  
  <p>This runs after the lookup:</p>
  
  <pre><code>myString = [NSString stringWithString:[[decimalInchArray objectAtIndex:x]objectAtIndex:1]];
  NSLog(@"myString = %@",myString);
  </code></pre>
  
  <p>The log shows <code>myString</code> is the correct fraction i.e. <code>myString</code> is correctly displaying the fraction I want to return, but <code>outputFraction</code> is null.</p>
  
  <p>I think it's a pointer issue.  I tried <code>*myString</code>, but the compiler throws an error (incompatible types).</p>
  
  <p>Any suggestions are really appreciated.</p>