Note that there are some explanatory texts on larger screens.

plurals
  1. POXcode editor default to -(void) instead of -(voidPtr)?
    primarykey
    data
    text
    <p>In Xcode (3.2 on Snow Leopard) when I start to type out a function such as</p> <pre><code>-(void)myFunctionName { } </code></pre> <p>When I first start typing the code hint is </p> <pre><code>-(voidPtr </code></pre> <ol> <li><p>What is the difference between <code>void</code> and <code>voidPtr</code>? I assume that <code>voidPtr</code> is a pointer of some kind, what cases call for its use? Do I want to be using <code>voidPtr</code> instead of <code>void</code>?</p></li> <li><p>Can I change a preference in the editor that will default to <code>void</code> and then I can type P and tab complete to <code>voidPtr</code> if I want?</p></li> <li><p>Is there a general way to configure or prioritize code hints so that common hints show up before more obscure code hints?</p></li> <li><p>Can I create code hint shortcuts? Where I type a couple of characters and a command to expand common boilerplate code?</p></li> <li><p>What are some recommended practice tutorials for getting really productive in Xcode editing?</p></li> </ol> <p><strong>Update:</strong> Based on Darren's suggestion it looks like voidPtr comes from</p> <pre><code>CarbonCore/Threads.h ... /* The following ProcPtrs cannot be interchanged with UniversalProcPtrs because of differences between 680x0 and PowerPC runtime architectures with regard to the implementation of the Thread Manager. */ typedef void * voidPtr; </code></pre> <p>I am running Xcode on a fresh vanilla install of Snow Leopard. And I have not done anything exotic with my projects. Just starting some very basic tutorials on Xcode and Objective C. Any experienced Objective C folks have useful background info here? </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload