Search code examples
objective-cxcodecocoa

No more "jump to definition" for system classes in Xcode?


I definitely remember being able to jump to definitions of system classes (e. g. NSWindow) in past versions of Xcode. Not in 16.2. Is that a setting that needs to be enabled, or something is broken in my setup, or is it an intentional change in functionality?

EDIT: seems like something is broken in my Xcode setup. It jumps as expected to definitions of my classes, but not to the definitions of framework classes. Almost as if there is an index that enables the jumping logic, and it needs to be rebuilt for the MacOS SDK itself...


Solution

  • It is indeed a setting, in the Navigation preferences:

    enter image description here

    When I command-click on NSWindow in this code...

    enter image description here

    ... I get this:

    enter image description here

    I believe that's what you're looking for. I can't explain why that doesn't happen on your machine. I would suggest quitting Xcode and deleting the derived data and caches.