How to customize a toolbar in Xcode 4? - xcode4

Is there a way to customize toolbar in Xcode 4? Reorder buttons, remove default and add new? Also I want to turn off text under toolbar buttons, since I run Xcode 4 on 13" Macbook where every pixel is precious.

To turn off text underneath the buttons just cmd+click on the top right button (on the level with the traffic lights). This is a global thing.
The rest you're stuck with I'm afraid.

According to: http://pilky.me/view/16 toolbar customization is gone, and unlikely to return :(

As Elibud says toolbar customisation is no longer available, I use a 13" Macbook and, minimise them. I am running Xcode V3, it's a bit easier to see all the windows as you can move all the menus around and open Interface Builder separately.

Related

Xcode 9 - Simulator - Hide Title Bar

In Xcode 9, I haven't found a way yet to disable the title bar when the bezel is turned off. I'm trying to make the simulator go full screen for a demo on a touchscreen TV and the little gray bar at the top is preventing it from getting there. I've tried many different things from changing plist items to trying to add code for NStitlebar but to no avail. Does anyone know how to accomplish this?
This is what I see:
Simulator Image with Title Bar
This is what I want to see:
Mockup removing the title bar
So the best way I've found in my research is to do it not in the code of the app but through the hidden Internal menu option of Simulator. Apple has placed a hidden Internal menu with additional features that can only be enable through some Terminal commands.
Link here to a simple tutorial: http://www.cansurmeli.com/blog/enabling-hidden-xcode-simulator-features/
Once that is enabled, then turn the "Allow Fullscreen Mode" in the Internal menu as well as change the options in "Floating Name" to remove the bar and expand fully.

How to resize the designer-space in qt-creator if needed when developing?

As I am putting more widgets on top of more layouts in my application, the space where I design the GUI is getting also bigger for the Qt-creator interface.
I have many buttons and frames which are out of reach. I cannot see them (or click them, of course). I don't know how they look until I run the whole application for debugging.
Is there is a way to zoom out/in the main frame (the whole playground) so that I can see my full GUI design on the UI of Qt IDE?
P.S.: I am working on macBook 13"
Zooming is not possible. You can use Tools -> Form Editor -> Preview.
If the viewport gets too small the QtCreator shows scrollbars which allow to move the part of interest into view.
Note, on some system configurations the scollbars may be very small and hard to handle.
You can use this steps
Tool-->options-> Text editor ->zoom
Text editor

WatchKit Menu Items Not Displaying

I'm in Xcode 6.2 Beta 3 (Build 6C101), I've added a menu and two menu items to my Interface Controller, and created IBActions for both. I've given them titles and images, but when I run the app nothing displays.
I've read
https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/Menus.html
and can't see anything about need to show menu items programatically - what am I missing?
You do not need to present the menu programmatically. The only thing you need to do is wire each button to IBActions in your Watch app extension.
The most likely issue is caching of the previous Watch app storyboard. Do a clean build and try again.
Finally, as you likely know WatchKit menus only display on a "force press". They cannot be used for the main interface of the Watch app. In the Simulator, a click and hold with the mouse will simulate a force press, and the animation will make it clear when you have done one, even in contexts where it doesn't do anything.
This was solution for me- Go to Hardware->Touch Pressure->Deep Press then try tap on watch simulator.
I have recently encountered this issue on a real device, although the menu was working as expected on the watch simulator. In my case, the problem was in SF Symbol that I've used as an image.
Everything was fixed after replacing it with an image from the assets catalogue.

Letter box in iPhone5

It works like magic to get rid of the letter box in iPhone5. Just put in the picture
Default-568h#2x.png.
And the app will open with the NavBar in the top in iPhone5 instead of in a letter box.
But how to reverse that?? If I remove the Default-568h#2x.png it still opens unboxed.
Is it possible to go back to the previous letter boxed version?
Or in a new project using Xcode 4.5 to build for letter boxed apps?
The simplest way to get back to the letterbox (3.5-inch display) on the iPhone 5 seems to be
Remove the 4-inch display sized launch image from the project.
Delete the app from the phone.
Clean the project using Product > Clean.
Install the app to the phone.
I asked how can this be done without deleting the app?, but it doesn't seem to be possible.

Custom Application Icon for processing app

I've written a small Processing App which I'm planning to release soon. What's still missing is a sweet custom icon for Titlebar/Taskbar (Win) and Dock (Mac). Any suggestions how to do this?
Thx!
Meanwhile I figured it out on my own:
Obviously this works for Mac OS by replacing the sketch.icns file within the exported app, for win & liunx is done by adding this line to your setup method:
frame.setIconImage( getToolkit().getImage("sketch.ico") );
It depends if you have any artistic ability or not.
If not, then you can hire an icon designer to do one, or search the web for free icons - there are billions.
If you have a modicum of artisticness, then you could grab a free icon that is almost what you want and then tweak it. IcoFX is a great free application for doing this sort of thing.
If you think you have what it takes to draw an icon from scratch, then a good plan is to use a vector art package. This allows you to export the same graphic at multiple resolutions so you can get top quality at every icons size you need (from 16x16 to 256x256). Alternatively, draw a large (512x512) verison in a bitmap editor and then downscale it as required. As long as you start big and downscale, you shouldn't have any problems (although to get a good icon at 16x16 and 32x32 you will still need a good eye and a lot of manual tweaking).
In your code, just type this line:
frame.setIconImage( getToolkit().getImage("sketch.ico") );
For Windows/Linux, this will do it. For Mac/OSX, follow these steps:
Find your sketch in Finder
Right click > info, or CmdI
Find your icon and open it in Preview
In Preview, click on your icon and press CmdA or right click > select all
In Preview, press CmdC, or right click > copy
Go back to Finder. Click on the current icon of your sketch. You'll know you've selected it when a blue outline appears. Press CmdV, or right click > paste
Tips:
The standard icon size is 512x512
When making your icon, make sure that your transparencies are working

Resources