Side-by-side .m and .h files are maybe my favorite thing about XCode 4. Of course, there’s gotta be a catch: XCode switches to “Manual” sometimes, showing some other random .h file. Switching among tabs, I frequently start writing in a .h which isn’t actually the right one. I usually notice this pretty quickly, but it’s annoying.
Is there a way to tell Xcode to always display the ‘Counterparts’ view, i.e. the .h to whatever .m I have in the primary editor?
EDIT: My workaround is the wonderful hand-twisting shortcut Shift–Option–Cmd–Z, which brings up the counterpart whenever Xcode decides to get all cute and show some random other file.
Not currently, no. File an enhancement request at http://bugreport.apple.com
FYI, my own experience with this annoyance is usually caused by accidental trackpad navigations while my pointer is over an assistant pane.