-
Book Overview & Buying
-
Table Of Contents
Mac Application Development by Example: Beginner's Guide
By :
To change the Mac OS X deployment target for our project we need to do the following:



Apple recommends we create App Icon images in a variety of different sizes ranging from 16 x 16 to 1024 x 1024. If we were building an App to deploy in the App Store, we would create more than a single 512 x 512 icon but for our SimpleCalc App a single icon is all we need.
SimpleCalc.iconset with the name icon_512x512.png.The filename must be exact. If you name it anything other than icon_512x512.png the icon will not be correctly updated and you will see a generic icon instead of your App Icon.

iconset folder, we simply drag that folder to the App Icon section of our project target and Xcode will automatically convert it to a suitable .icns file as shown in the following screenshot:
iconset folder prior to dragging the folder in to the App Icon section of the Target as shown in the following screenshot:
When we set up the Deployment Target and App Icon, we made changes to our Xcode project. Xcode will use those changes and apply them to the App when we build it so that the App is ready to run on the versions of Mac OS X that we need and the Finder will display our unique icon to identify our App on the desktop.
Create your own 512 x 512 bitmapped image, save it in .png format, and put it in the iconset folder for the SimpleCalc App. You can use any image editing software that you like. You may want to create all of the required image sizes so that you don't get warnings from Xcode. The following screenshot shows the images of all required sizes present in the SimpleCals.iconset folder:

If you need a free bitmap editor take a look at Gimp for Mac OS X:
Change the font size
Change margin width
Change background colour