Re: Some Xcode pet peeves
On Jul 14, 2015, at 12:30 , Doug Hill xcodeus...@breaqz.com wrote: Just as a point of clarification, I’m referring to the Show Assistant Editor button at the top-left of the window. As a point of clarification, you might mention which version of Xcode you’re using. There was a bug, in Xcode 6.3.x, where the assistant editor *initially* showed the wrong thing — that is, not the thing it was configured to show. That bug is fixed in Xcode 7, though I don’t know if it’s fixed in 6.4. The symptoms you describe sound like this bug, not any inherent defect in the assistant editor UI. As several people have told you already, the feature you’re asking for exists, and is called “Counterparts” in the popup menu at the top left corner of the assistant editor pane, and it sticks “on” unless you do something to turn it off (except for the above-mentioned bug). ___ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (Xcode-users@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Some Xcode pet peeves
OK, I think I get it now. • Open a .m source file • Click on Show the Assistant Editor - Shows the corresponding .h. • Command-click on a symbol in the .h (for example NSObject to show it’s interface) • Click on Show the Standard Editor to dismiss the Assistant editor. • Select a totally different .m file from the file tree. • Click on Show the Assistant Editor - Shows NSObject.h Leaving the Assistant editor open, If I don’t navigate away from the corresponding file, I can click on any file in the file tree and it will always show the correct corresponding file. It looks like if I ever navigate away from the corresponding file in the Assistant editor, I can never see the corresponding file for any other file automatically, unless I click on the X button to dismiss Assistant editor. So clicking X does something different than Show Standard Editor which is a little confusing. As a suggestion, it would be really nice to have a button/preference that is ‘Show corresponding file always’ rather than sometimes. I’m only interested in seeing the related files rather than keeping a history of previously browsed files. Sorry for going on about this one feature, but it’s something I use on a daily basis and I’m always amazed how hard it is to do. Doug Hill http://chartcube http://chartcube/.com/ On Jul 14, 2015, at 11:56 AM, Scott Ribe scott_r...@elevated-dev.com wrote: On Jul 14, 2015, at 12:49 PM, Doug Hill xcodeus...@breaqz.com wrote: 1. When editing a file I click on the Assistant editor button (e.g. the overlapping circles), and I expect to to see the corresponding .h or .m/.c/.cpp. However it often shows some other totally non-related file, possibly the previous file that was shown there. Dismissing the Assistant editor by clicking the ‘X’ button and clicking Assistant editor again shows the correct corresponding .h/.m/.c/.cpp. There's a popup menu up there from which you can select counterparts. As long as you select files by clicking them in the files tree on the left, it will automatically open the counterpart in the assistant editor. But as soon as you do something else which results in breaking that pairing, it doesn't until you set it back. ___ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (Xcode-users@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Some Xcode pet peeves
On Jul 14, 2015, at 11:56 AM, Scott Ribe scott_r...@elevated-dev.com wrote: There's a popup menu up there from which you can select counterparts. As long as you select files by clicking them in the files tree on the left, it will automatically open the counterpart in the assistant editor. But as soon as you do something else which results in breaking that pairing, it doesn't until you set it back. And if you’ve overlooked that pop-up, Doug, you’re missing all the other cool stuff the assistant can show. “Callers” is super useful — it’ll let you browse all the methods/functions that call the method/function selected in the main editor. Similarly, “Test Callers” shows all the unit tests that invoke the selected method. “Assembly” can useful when optimizing. And so forth; it’s worth experimenting with. (You can also access a lot of these directly in the main editor via the funky little “four squares” pop-up menu at its top left. In this case, choosing one jumps the main editor to what you selected.) Oh, and FYI, if you want to show a specific file in the assistant, option-click it in the file navigator. I use this when I’m working on something that affects two source files at once, like moving some functionality from one class to another. —Jens ___ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (Xcode-users@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Some Xcode pet peeves
On Jul 14, 2015, at 12:46 , Doug Hill xcodeus...@breaqz.com wrote: While this Counterparts popup menu is useful, Um, you only have to choose Counterparts once. The setting sticks across closings and reopenings of the assistant editor. That’s the point of it, really. my criticism is it’s actually easier to click on Show Assistant editor, click the X to dismiss it and select Assistant editor again. Opening and closing it multiple times should not make it behave any differently. But there’s a *bug* that makes it do the wrong thing the first time. Rather than going to the Counterparts popup and selecting counterparts, which requires navigating a tiny popup menu. Also, I generally don’t have the assistant editor open I have to click on Show Assistant Editor anyways. You know you can type Command-Option-Return to show it, and Command-Return to hide it, don’t you? ___ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (Xcode-users@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Some Xcode pet peeves
On Jul 14, 2015, at 12:24 PM, Jens Alfke j...@mooseyard.com wrote: On Jul 14, 2015, at 12:15 PM, Doug Hill xcodeus...@breaqz.com mailto:xcodeus...@breaqz.com wrote: • Command-click on a symbol in the .h (for example NSObject to show it’s interface) • Click on Show the Standard Editor to dismiss the Assistant editor. If you use the Back command in between those steps, it restores the assistant editor to Counterpart view, so it’ll do what you want when you reopen it. I understand what’s bugging you, but personally I leave the assistant editor open 90% of the time (why leave the right half of my screen blank?) and I switch back and forth a lot between Counterpart, Manual, and Callers modes, so I’m used to selecting Counterpart if I need to go back to it. Hm, have you checked whether Show Counterpart is a command you can bind a keystroke to? —Jens Hey Jens, thanks for the suggestion for a key equivalent. Let’s take a to the mysterious land of Xcode Key Bindings. Love how you can search for a key by name; and WOW even key equivalent. Type ‘control’ and all the Control-key matches are shown. And it even highlights the little carat character so you know what it means. Which helps with Option because I don’t even know how to describe the character it uses much less how I would remember that’s what it means. OK, there is in fact a shortcut, ‘Jump to Next Counterpart in Assistant Editor (Navigate…’ (text is too large for to show in this window) And it has the easy to remember shortcut: Control-Option-Command-Up Arrow Will remap and try this out. Thanks for the tip! Doug Hill http://chartcube http://chartcube/.com/ ___ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (Xcode-users@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Some Xcode pet peeves
On Jul 14, 2015, at 12:38 PM, Doug Hill xcodeus...@breaqz.com wrote: On Jul 14, 2015, at 12:24 PM, Jens Alfke j...@mooseyard.com mailto:j...@mooseyard.com wrote: On Jul 14, 2015, at 12:15 PM, Doug Hill xcodeus...@breaqz.com mailto:xcodeus...@breaqz.com wrote: • Command-click on a symbol in the .h (for example NSObject to show it’s interface) • Click on Show the Standard Editor to dismiss the Assistant editor. If you use the Back command in between those steps, it restores the assistant editor to Counterpart view, so it’ll do what you want when you reopen it. I understand what’s bugging you, but personally I leave the assistant editor open 90% of the time (why leave the right half of my screen blank?) and I switch back and forth a lot between Counterpart, Manual, and Callers modes, so I’m used to selecting Counterpart if I need to go back to it. Hm, have you checked whether Show Counterpart is a command you can bind a keystroke to? —Jens Hey Jens, thanks for the suggestion for a key equivalent. Let’s take a to the mysterious land of Xcode Key Bindings. Love how you can search for a key by name; and WOW even key equivalent. Type ‘control’ and all the Control-key matches are shown. And it even highlights the little carat character so you know what it means. Which helps with Option because I don’t even know how to describe the character it uses much less how I would remember that’s what it means. OK, there is in fact a shortcut, ‘Jump to Next Counterpart in Assistant Editor (Navigate…’ (text is too large for to show in this window) And it has the easy to remember shortcut: Control-Option-Command-Up Arrow Will remap and try this out. Thanks for the tip! Doug Hill Ugh, it turns out remapping is not quite what I expected. It appears there are groups of related commands that differ by a key modifier. So Jump to Next Counterpart is the ‘primary’ command, and Jump to Next Counterpart in Assistant Editor is a the same except has an additional command key, in this case Control. However, I can only change the key equivalent for the ‘primary’ command (e.g. Jump to Next Counterpart) and 'Jump to Next Counterpart in Assistant Editor’ differs by only the Control key. As an example, I change Jump to Next Counterpart to be F2. Now 'Jump to Next Counterpart in Assistant Editor’ is Control-F2. But I can’t change the key mapping for just this command. Wow. Any ideas how to proceed. Because trying to type Control-F2 has sprained my thumb due to the reach between those keys. Thanks. Doug Hill http://chartcube http://chartcube/.com/ ___ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (Xcode-users@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Some Xcode pet peeves
On Jul 14, 2015, at 12:15 PM, Doug Hill xcodeus...@breaqz.com wrote: • Command-click on a symbol in the .h (for example NSObject to show it’s interface) • Click on Show the Standard Editor to dismiss the Assistant editor. If you use the Back command in between those steps, it restores the assistant editor to Counterpart view, so it’ll do what you want when you reopen it. I understand what’s bugging you, but personally I leave the assistant editor open 90% of the time (why leave the right half of my screen blank?) and I switch back and forth a lot between Counterpart, Manual, and Callers modes, so I’m used to selecting Counterpart if I need to go back to it. Hm, have you checked whether Show Counterpart is a command you can bind a keystroke to? —Jens ___ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (Xcode-users@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Some Xcode pet peeves
On Jul 14, 2015, at 12:40 PM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Jul 14, 2015, at 12:30 , Doug Hill xcodeus...@breaqz.com mailto:xcodeus...@breaqz.com wrote: Just as a point of clarification, I’m referring to the Show Assistant Editor button at the top-left of the window. As a point of clarification, you might mention which version of Xcode you’re using. There was a bug, in Xcode 6.3.x, where the assistant editor *initially* showed the wrong thing — that is, not the thing it was configured to show. That bug is fixed in Xcode 7, though I don’t know if it’s fixed in 6.4. The symptoms you describe sound like this bug, not any inherent defect in the assistant editor UI. As several people have told you already, the feature you’re asking for exists, and is called “Counterparts” in the popup menu at the top left corner of the assistant editor pane, and it sticks “on” unless you do something to turn it off (except for the above-mentioned bug). I’m using latest public Xcode 6.4. While this Counterparts popup menu is useful, my criticism is it’s actually easier to click on Show Assistant editor, click the X to dismiss it and select Assistant editor again. Rather than going to the Counterparts popup and selecting counterparts, which requires navigating a tiny popup menu. Also, I generally don’t have the assistant editor open I have to click on Show Assistant Editor anyways. Again, I realize this is a lot of virtual bits being generated for this one feature, but it’s something I use on a constant basis every day and it just seems like it’s so hard to do in Xcode. Thanks for all the replies everyone. Doug Hill http://chartcube http://chartcube/.com/ ___ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (Xcode-users@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Some Xcode pet peeves
On Jul 14, 2015, at 12:49 PM, Doug Hill xcodeus...@breaqz.com wrote: 1. When editing a file I click on the Assistant editor button (e.g. the overlapping circles), and I expect to to see the corresponding .h or .m/.c/.cpp. However it often shows some other totally non-related file, possibly the previous file that was shown there. Dismissing the Assistant editor by clicking the ‘X’ button and clicking Assistant editor again shows the correct corresponding .h/.m/.c/.cpp. There's a popup menu up there from which you can select counterparts. As long as you select files by clicking them in the files tree on the left, it will automatically open the counterpart in the assistant editor. But as soon as you do something else which results in breaking that pairing, it doesn't until you set it back. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303) 722-0567 voice ___ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (Xcode-users@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to arch...@mail-archive.com