View Full Version : XCode 3.0 IDE/Editing Question

Jun 16, 2008, 09:23 PM
Ok. XCode 3.0 is a great tool. I love it so far.

But when I Run my program, I have to manually click on the window each time because it ends up at the "all in one" window.

This is kind of a pain b/c I am used to Visual Studio. Is there something I am doing wrong?

Also how I keep my hand off the mouse to get to different windows? If I am editing my .m file I have to search with my mouse for the .h file that I have open.

Is there any way to have tabs? I prefer not to have to move my mouse if I don't absolutely need to. ;)

Jun 16, 2008, 11:42 PM
Well XCode is very different from MSVC - and it is a bit of an uphill battle at first.

Command + Option up arrow will let you cycle between your .m and your .h
Command + Option Left / Right Arrow will let you cycle threw your open files.

The Grouped button will tell Xcode to direct all new files to to this editor.

As an IDE Xcode can feel a little limiting at times for organizing your project but it does have great searching and code completion so that makes up for it.

Jun 17, 2008, 08:13 PM
Thanks for the info!

I got one more quick question about the IDE. When I am using the auto fill in features of Xcode, sometimes it will allow me to tab out all the function/parameter names. Is there some easy way to tab/cycle through these?

The first one I can get to by tabbing but the others I cannot. Once I start typing, I have to go over there myself and erase the <NSString*> stuff.

Jun 18, 2008, 12:21 AM
Yup, its a little weird at first (Ok well I'm still not use to it) but you use:
Control + / to cycle though the auto fill sections like this....

glFrustumf(<#GLfloat left#>, <#GLfloat right#>, <#GLfloat bottom#>, <#GLfloat top#>, <#GLfloat zNear#>, <#GLfloat zFar#>)

Escape will bring down that drop down so you can select different selections.

I'm sure there are more Xcode tricks out there but those are the ones I know off the top of my head...

Oh yeah... one more

deall + Escape gives you the option for Xcode to write out a dealloc function for you - handy to know.

Jun 19, 2008, 05:35 PM
I have tried pressing what you suggested.

I am at where you said to press Ctrl + and I did it and all I get is a beep.

Mac Player
Jun 19, 2008, 05:52 PM
Press CTRL AND /

Jun 19, 2008, 06:22 PM
The second group in Xcode preferences includes a checkbox to turn on/off the "insert argument placeholders for completions" option. That will stop putting the <NSString> junk in there (which is most annoying).

Preferences are standardized in most Mac apps now to be in the Application menu or accessible by typing Command , (comma).

You can also auto-complete an init method which is kinda silly since its so short.

Jun 19, 2008, 09:14 PM
Press CTRL AND /

Thanks I was being dumb. I was pressing \


Silly me. :p