Archive for September, 2009

CVS – iPhone XCode

Tuesday, September 29th, 2009

1) Create a new project
2) Add the following two lines of code in the header for the main AppDelegate.h and AppDelegate.m

// $Header$
// $Log$

3) Save the project
4) In the top XCode menu go to SCM/Repositories
5) Import the project folder
6) In Xcode, close the project

This is the important step!!!
7) In the Finder, delete the project folder (there is a bug that causes errors if you do not do this!)

8) Back in SCM/Repositories, Checkout the project folder (place it were you just deleted the old folder) and then open it
9) SCM/Configure SCM For This Project – At the very bottom – SCM Repository: MP1
10) SCM/Configure SCM For This Project – At the very bottom -Rebuild Code Sense Index

That’s it! Now all changes to the project will be tracked. We have not figured out how to track .xib changes yet.

Right click the individual filename or the entire project when you want to “Commit Changes”.

PS: Please make sure to write lots of comments in your code as they really do help =)

Create A Custom iPhone Home Screen Icon

Tuesday, September 29th, 2009

The iPhone allows you to easily save any website URL to your home screen as an icon. With a simply finger click you can launch Safari and see your web page. However, the default icon for this is a screenshot of the webpage. Well, for some of us, this is not quite enough. Wouldn’t it be nice to be able to have your logo on your homescreen? These instructions show you how and are as clear as a bell.

Thank you Guillermo Esteves

—-

According to Apple’s Human Interface Guidelines, you should create an image in PNG format that “measures 57 x 57 pixels, with 90 degree corners (if the image measures other than this size, iPhone 1.1.3 scales it.)”

Save this image in your root document folder as apple-touch-icon.png if you want the iPhone to add the default visual effects (rounded corner, drop shadow and gloss), or as apple-touch-icon-precomposed.png if you don’t want it to add any visual effects. This will enable the icon for the entire website.

If you want to add an icon to a specific page, or use a custom file name, use this code: