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.
Related
I have tried disabling "show in destination menu". But that does not work.
I am trying to hide all version except 8.4 & 9.0 without uninstalling them. How can that be done?
I hope this question is not considered a non-programming question. Because there is no answer anywhere for this.
I also tried hiding certain Simulators that I usually don't build for to help reduce menu clutter. Unchecking the 'show in destination menu' option also did not have any effect.
The best I could do was to just delete the Simulator from the Devices window.
I know that if I wanted to re-add that simulator for future testing, all I had to do was tap the '+' icon, and click 'Add Simulator', and add the desired Simulator.
I cannot seem to add any simulated location to the simulator, as the corresponding menu is completely greyed out, as shown in figure:
the location works well when debugging with the actual device.
any idea?
The iOS Simulator must be running your app before that menu will be enabled. For me it appears immediately after a successful build.
If it's proving inconvenient to make a selection in that menu between build of your app and it's launch, I would recommend setting a default location via Product -> Scheme -> Edit Scheme. You can then select your preferred default in the Run / Options panel after checking the "Allow Location Simulation" box.
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.
So far the only working solution I have found is to use:
[NSApp setApplicationIconImage: myImage];
But this message is sent after the default icon is already in the dock, so it's not working: the icon is initially set to the default application icon. I have not found the correct place to send this message.
I have read this: How can I set the icon for a Mac Application in Xcode? but it seems a bit too old to be useful for XCode 4.3
What is the standard way to set the dock icon, and even more importantly, where in the documentation is this described ?
I have trashed 4.3 two days ago, so I am using 4.5 developer preview to explain, but it should be similar.
Open up you project
In the left inspector be sure you are in the project navigator
Click the top node which should be named like your project
The middel section should now show some summaries of your project
Click on your Project name under "Targets"
The middle section should now show some Tabs, get on "Summary"
Drag your Icon file to the App Icon field.
Hope that helps.
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.