Updating your application With Sparkle

In this recipe, we will show you how you can use the Sparkle framework to handle the updating of your application. Sparkle works by periodically checking your website for updates by reading a special appcast.xml file.

Getting ready

First, you will need to download the Sparkle framework from http://sparkle.andymatuschak.org.

Next, in Xcode, create a new Cocoa Application project and name it Update.

How to do it...

  1. Expand the Frameworks group in the Xcode project view.
  2. Right-click on Linked Frameworks and choose Add, then choose Existing Frameworks. As an alternative, you can drag-and-drop the Sparkle.framework on the Linked Frameworks group to add it to the project.
  3. Click on the Add Other button and navigate to ...

Get Cocoa and Objective-C Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.