How to toggle between .h and .m in Xcode 4

Objective CXcodeIos

Objective C Problem Overview


Just installed Xcode 4 so far so good, except that Apple changed all the keyboard shortcuts! Anyone know how to toggle between .h and .m?

Objective C Solutions


Solution 1 - Objective C

Apple changed all sorts of shortcuts, but to switch between header and implementation, the new shortcut is,

+ + /

You can change it back to the previous + + / in Preferences > Key Bindings.

Look for the Jump to Next Counterpart and Jump to Previous Counterpart commands.

If you are working on a big screen, you could use the Assistant layout's split view, and have the .h and .m files side by side.

Solution 2 - Objective C

Hither be the Grand Unified Gigantic Sheet of Xcode 4 Keybindings.

Download it.
Preview it.
Print it.
Read it.
Know it.
Use it.
Be it.

Solution 3 - Objective C

You can also use the 3 finger swipe up or down gesture on a trackpad.

Solution 4 - Objective C

The commands we're looking for are in the Navigate menu bar item.

Jump to Next Counterpart

and

Jump to Previous Counterpart

Once you have the menu item names, these can be assigned to any keyboard shortcut.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAliView Question on Stackoverflow
Solution 1 - Objective CAnuragView Answer on Stackoverflow
Solution 2 - Objective CbbumView Answer on Stackoverflow
Solution 3 - Objective CJeff YouelView Answer on Stackoverflow
Solution 4 - Objective CpkambView Answer on Stackoverflow