Get target name (or icon name) in my code
<p>Have been searching for this, I need to have a conditional statement in my objective C code based on the target, but I can't seem to find a direct way to get the target name from the code.</p>

<p>Have been trying to read the icon value from the bundle using:</p>

<pre><code>NSLog(@"Icon File: %@",[[NSBundle mainBundle] objectForInfoDictionaryKey:@"icon"]);
</code></pre>

<p>which always return null.  </p>

<p>Looking for a suggestion.</p>

<p>Thanks in advance!</p>
