• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Jump to Definition problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Jump to Definition problem


  • Subject: Re: Jump to Definition problem
  • From: Chris Espinosa <email@hidden>
  • Date: Fri, 11 Jul 2008 17:22:52 -0700


On Jul 11, 2008, at 5:07 PM, Michael Stauffer wrote:

I'm having trouble with the "Jump to Definition" command. I'm working in a
project that's a copy from an older version (XCode 2.4 project), placed in a
new folder. I've made a new source directory and have copied the old sources
to it, and have updated the project to be working from this new dir, and
that all seems fine.


But when I use Jump to Definition on a symbol, it finds both the new source
file and old source file, and shows me both in a selection box. Anyone know
why it would be looking in the old source folder, and how can I get it to
stop? Where might refs to the old source files be hiding in the project?
I've checked the search paths for both the project and target, and they look
good.

Project > Edit Project Settings > General tab > Rebuild CodeSense Index. You copied over the old index which indexed the files in the old location, then the index reindexed the files in the new location, adding them to the copied index.


I'm looking at "Navigating Source Code Files" in the Xcode docs (BTW, Table
18-1 seems out of date?). Under the section "Shortcuts for Finding Text and
Symbol Definitions", it seems to say that Jump to Definition uses the last
set of serach options for searching. Looking at the options in my Project
Find window, I see that it's set to "Search in open projects", and under
that, "All files in this project" and "Project files only", then "Source
files only".

I believe those options affect Find Definition, not Jump to Definition. Subtle difference, admittedly, but they are different.


Chris


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • RE: Jump to Definition problem
      • From: "Michael Stauffer" <email@hidden>
References: 
 >Jump to Definition problem (From: "Michael Stauffer" <email@hidden>)

  • Prev by Date: Re: Jump to Definition problem
  • Next by Date: Re: Xcode 3.1 is available at connect.apple.com (Part 2b)
  • Previous by thread: Re: Jump to Definition problem
  • Next by thread: RE: Jump to Definition problem
  • Index(es):
    • Date
    • Thread