PDA

View Full Version : xcode jump to declaration




Tex-Twil
Aug 8, 2009, 01:38 PM
Hello,
I'm starting with xcode and the 1st thing I can't find is the "jump to declaration" function. Not the jump to definition but declaration. I'm used to Eclipse and there it's the F3 key :)


int myInt;

... // a lot of code

// I want to jump from here to the 1st line
myInt = 10;


Thanks,
Tex



lloyddean
Aug 8, 2009, 04:13 PM
Hello,
I'm starting with xcode and the 1st thing I can't find is the "jump to declaration" function. Not the jump to definition but declaration. I'm used to Eclipse and there it's the F3 key :)



Thanks,
Tex

I don't believe there is an explicit way to do so.

Command-Double-Click will bring you to the definition.
Command-Double-Clicking the definition will bring you to the
declaration.

Tex-Twil
Aug 8, 2009, 04:19 PM
I don't believe there is an explicit way to do so.

Command-Double-Click will bring you to the definition.
Command-Double-Clicking the definition will bring you to the
declaration.
hmm well it doesn't seem to work with the example I gave.

lloyddean
Aug 8, 2009, 05:47 PM
hmm well it doesn't seem to work with the example I gave.

Sorry, forgot I was in the next version.

Tex-Twil
Aug 9, 2009, 02:35 AM
Sorry, forgot I was in the next version.
which version ?

Catfish_Man
Aug 9, 2009, 04:28 AM
cmd-doubleclick works in every remotely recent* version I'm aware of.


*certainly since Xcode 2, probably a good bit earlier than that.

Tex-Twil
Aug 9, 2009, 05:24 AM
cmd-doubleclick works in every remotely recent* version I'm aware of.


*certainly since Xcode 2, probably a good bit earlier than that.
Yes but the cmd-double click is not what I want !

When I'm in my code I want to find the place where I declared a varaible/object.

lloyddean
Aug 9, 2009, 11:27 AM
which version ?

First of all you're correct and I'm was wrong. It'll work for
global variables and function names but NOT locals.

And the question was asked of Xcode so ...