xcode jump to declaration

Discussion in 'Mac Programming' started by Tex-Twil, Aug 8, 2009.

  1. Tex-Twil macrumors 68020

    Tex-Twil

    Joined:
    May 28, 2008
    Location:
    Europe
    #1
    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
     
  2. lloyddean macrumors 6502a

    Joined:
    May 10, 2009
    Location:
    Des Moines, WA
    #2
    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.
     
  3. Tex-Twil thread starter macrumors 68020

    Tex-Twil

    Joined:
    May 28, 2008
    Location:
    Europe
    #3
    hmm well it doesn't seem to work with the example I gave.
     
  4. lloyddean macrumors 6502a

    Joined:
    May 10, 2009
    Location:
    Des Moines, WA
    #4
    Sorry, forgot I was in the next version.
     
  5. Tex-Twil thread starter macrumors 68020

    Tex-Twil

    Joined:
    May 28, 2008
    Location:
    Europe
    #5
    which version ?
     
  6. Catfish_Man macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
    #6
    cmd-doubleclick works in every remotely recent* version I'm aware of.


    *certainly since Xcode 2, probably a good bit earlier than that.
     
  7. Tex-Twil thread starter macrumors 68020

    Tex-Twil

    Joined:
    May 28, 2008
    Location:
    Europe
    #7
    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.
     
  8. lloyddean macrumors 6502a

    Joined:
    May 10, 2009
    Location:
    Des Moines, WA
    #8
    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 ...
     

Share This Page