Is there a way to add a "Build & Analyze" icon to XCode's toolbar? If not, is there at least a way to assign a keyboard shortcut to this option?
Looks like no on the toolbar item. To see the customization options for a toolbar control-click it (or right click it if you have a two button mouse).
You can assign a keyboard shortcut to any menu item in Mac OS X via System Preferences. See http://docs.info.apple.com/article.html?path=Mac/10.5/en/8564.html
Xcode also has its own keybindings interface, which you can find in Xcode preferences.
Related
After upgrading to 8.3 Xcode I realize that the location icon is no longer there to add custom GPX location. Does anybody know where this icon was set to or is it completely remove.
The presence of this button is controlled by a setting in your scheme. Click on the Scheme popup in Xcode's toolbar, choose Edit Scheme from the menu, select the Run action, then click the Options tab, and verify that "Location Simulation" is checked.
I am building a preferences window for my app and would like to achieve the same "look" as the NSToolbar that Finder uses. When selected, the toolbar buttons in Finder look "pushed in". On the right-hand side of the image is my preferences window - you'll notice that even though General is selected it does not look "pushed in". How do I achieve the look of Finder (and most other built-in apps)?
Thank you,
CS
When you build the toolbar in Xcode you add toolbar items to it. Each toolbar item can be customized in the right pane of Xcode. Choose "Selectable" as behaviour and it works as you expect.
I need to frequently hide and unhide navigators and inspectors to make room for Interface Builder and complex storyboards. I learned all show/hide shortcuts in Xcode for panes, but can't find any for showing and hiding Document Outline. Is there a way to achieve this on keyboard?
There is no defined keyboard shortcut to show/hide the document outline. But you can define new shortcuts for these actions.
Just open the preferences (cmd+,) and search for "Document Outline" in the "Key Bindings" page.
Just to demonstrate the other solution how to setup the shortcut in System Preferences->Keyboard->Shortcuts.
In one of the Xcode updates 6 or 7.
โ9 is re-allotted for Navigators > Show Reports Navigator
so,
System Preferences > Keyboard > Shortcuts > App Shortcuts > Show/ Hide Document Outline โ9
is invalidated by Xcode automatically.
โงโ9 is what I chose. in the Keybindings.
When you press the keys for an NSMenuItem keyboard shortcut on Mac, the menu itself highlights to indicate that an action in that menu has been activated.
If you are not familiar with the effect try it now by selecting some text and while pressing CMD-C, watch the Edit menu. It will flash blue to indicate you activated a shortcut for an item in that menu.
I want to achieve the same effect programmatically, preferably without faking the keyboard entry. Thanks for your time.
Use the Accessibility framework. Find the menu item and send it an AXPress action.
In Windows, in any windows form or web browser, you can use the tab button to switch focus through all of the form fields.
It will stop on textboxes, radiobuttons, checkboxes, dropdown menus, etc.
However, in Mac OSX, tab skips dropdown menus. Is there anyway to change this behavior, or access the above items mentioned, without using a mouse?
Go to System Preferences > Keyboard and Mouse, then choose Keyboard Shortcuts. At the bottom, ensure Full Keyboard Access is set to "All controls". It's a long time since I turned it on but I think that's all you need to do
Apple Menu > System Preferences > Keyboard & Mouse > Keyboard Shortcuts:
Change the radio button at the bottom from "Text boxes and lists only" to "All controls."
Edit: Dammit. We're a fast group around here aren't we? :-)
I have found that I also need to set accessibility.tabfocus to 7 in Firefox's about:config.
It's in the System Preferences - this blog post shows where the setting is.