title: Bad receiver type iOS
body: <p>Ok, so I looked around on SO already and I saw a couple of problems like this but I couldn't figure out an answer for my particular situation.  Whenever I try to get the "count" or size of the <code>f</code> array that is being passed in, I get the <code>Bad receiver type 'double *'</code> error.  I tried converting it to an <code>int</code> but that did not help.  </p>
  
  <p>Any suggestions?</p>
  
  <pre><code>- (double[])convolve1D:(double[])total f:(double[])f size:(int)size { 
       double ConvOutput[[total count] + [f count]-1];
       double *F[size];
       double *TOTAL[size];
  
       for (int k = 0; k &lt; [f count]; k++)
           F[k] = f[k];
       for (int k = 0; k &lt; [f count]; k++)
           TOTAL[k] = total[k];
       for (int i = 0; i &lt; ([f count] + [total count] - 1);i++)
       {
           ConvOutput[i] = 0;
           for (int j = 0; j &lt; [total count]; j++)
           {
               if (i - j + 1 &gt; 0)
                   ConvOutput[i]+=TOTAL[j] * F[i - j];
           }
       }
  
  return ConvOutput;
  }
  </code></pre>