Tag Archives: xcode

Snapshots in Xcode 4

I (now) know this feature has been in Xcode for years but I just discovered it. Snapshots in Xcode 4 provide fast and reliable mechanism to make safe copies of your projects.

To create a snapshot simply choose File > Create Snapshot… choose a name and optional description and you are ready to make major changes to your project! To restore to a snapshot go to the Organizer window (Window > Organizer) and browse for the desired snapshot on the Projects tab. Click Restore Snapshot at the bottom and your project is exactly the same state as it was when you created the snapshot!

Just great!


Resizing views in the Interface Builder

For the last couple of days I’ve been trying to change the size of some of my views in the Interface Builder (v3.2.5). Well, not the whole time, of course. 😉

Although I followed some of the tutorials that successfully changed the size, I was not able to change it. No matter how I created the view. Corresponding fields in the “View size” tab (Inspector window) were disabled, read-only.

I then noticed that the “Status Bar” property was set to “Gray” in the View Attributes. After I changed the value to “Unspecified” both fields became enabled and I could then change the height of my view. The same happens when you have any of the other two bars set to anything else but “Unspecified”, namely the “Top Bar” and the “Bottom Bar”.