0

In Xcode 11, if you open the supposedly "smart" Assistant Editor when looking at a .h file it automatically gives you the complement eg .m file.

They seem to have taken away the Manual option but you can still do CmD-Shift-O to bring up the Assistant Editor and then click on siblings to see a lot of other file chices. However, the file options don't have a .m option. If you choose any one you automatically get the .h file. You can pull up the .h file and the choose complement to make the . m file appear in the right pane. But then it automatically changes the left pane to the .h file of the file in the right pane.

So far, I haven't figured out a way to look at two .m files (for two different classes) simultaneously?

Does anyone know of a way to do this in Xcode 11?

Thanks in advance for any suggestions.

user1904273
  • 4,562
  • 11
  • 45
  • 96

1 Answers1

1

You could add an editor and then you will have two side by side editors with two different .m files as in the screenshot below.

The button you are looking for is far right in the screenshot (with the little + inside). Note that you need to use that button and not the assistant window.

two .m files side by side

skaak
  • 2,988
  • 1
  • 8
  • 16
  • When I clicked that little + at the left of the regular editor, it opened 4 editors and I was able to get two of them to show .m files so your answer worked. But I'm not sure what it did. – user1904273 Nov 19 '20 at 02:23
  • 1
    If you keep on clicking it it will keep on adding editors. Also, if you have an assistant open and click it, you will get a new editor window complete with assistant thus the four editors. Just close to taste. You can also add the side by side to the bottom if you want (in the layout or use view > change editor orientation). – skaak Nov 19 '20 at 02:25
  • 1
    Ok. Thanks for explaining it! – user1904273 Nov 19 '20 at 02:32