In Xcode (3.2 on Snow Leopard) when I start to type out a function such as
-(void)myFunctionName {
}
When I first start typing the code hint is
-(voidPtr
What is the difference between
void
andvoidPtr
? I assume thatvoidPtr
is a pointer of some kind, what cases call for its use? Do I want to be usingvoidPtr
instead ofvoid
?Can I change a preference in the editor that will default to
void
and then I can type P and tab complete tovoidPtr
if I want?Is there a general way to configure or prioritize code hints so that common hints show up before more obscure code hints?
Can I create code hint shortcuts? Where I type a couple of characters and a command to expand common boilerplate code?
What are some recommended practice tutorials for getting really productive in Xcode editing?
Update: Based on Darren's suggestion it looks like voidPtr comes from
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;
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?