Xcode icon

Cocoa Open Source

These files are for use with the Apple Cocoa APIs. They should work with both Mac and iPhone/Pod/Pad unless otherwise stated.

Feedback

If you have anything you'd like to say about any of our open source offerings, or if you have an improvement or bug-fix that you would like to submit, please use the form below:

(optional)
(optional)

Donations

If you find our open source offerings useful, please support us by making a small donation. Your funding will help to ensure continued development of these tools.

Libraries

These are code libraries of useful functions and functionality to extend Cocoa. They are mostly documented and tested on Xcode 4. We do not officially support them, but if you have any issues then contact us or submit a bug report and we'll do our best to help.

Async Image icon

AsyncImageView

AsyncImageView is a simple extension of UIImageView for loading and displaying images asynchronously on iOS so that they do not lock up the UI.

Model icon

BaseModel

BaseModel provides a base class for building model objects for your iOS or Mac OS projects. It saves you the hassle of writing boilerplate code, and encourages good practices by reducing the incentive to cut corners in your model implementation.

Color icon

ColorUtils

A useful category extending UIColor with additional functionality including direct access to color components and creating colors from hex values.

Flags icon

CountryPicker

CountryPicker is a custom UIPickerView subclass that provides an iOS control allowing a user to select a country from a list. It can optionally display a flag next to each country name, and the library includes a set of 249 high-quality, public domain flag images from FAMFAMFAM that have been painstakingly re-named by country code to work with the library.

PageControl icon

CustomPageControl

Simple, drop-in replacement for the iPhone UIPageControl that allows customisation of the dot colour, size and spacing.

FXLabel icon

FXLabel

FXLabel improves upon the standard UILabel by providing a subclass that supports soft shadows, inner shadow and gradient fill, and which can easily be used in place of any standard UILabel.

GLView icon

GLView

Simple class collection for creating an OpenGL view on iOS and loading and displaying images in a variety of formats, including compressed and uncompressed PVRTC.

Dictionary icon

OrderedDictionary

Enhanced versions of the standard Cocoa NSDictionary class that preserve insertion order.

Reflection icon

ReflectionView

A UIView subclass designed to make it easy to create "mirrored floor"-style reflections of views on iOS.

RequestQueue icon

RequestQueue

RequestQueue is a simple class for managing multiple concurrent asynchronous URL requests in your applications.

SoundManager icon

SoundManager

Simple sound and music player class for playing audio on Mac and iPhone. Ideal for use in games and applications with basic sound playback requirements.

Path icon

StandardPaths

StandardPaths is a category on NSFileManager for simple, consistent access to standard application directories on iOS and Mac OS and abstraction of excluding certain files from iCloud backup on iOS.

XML icon

XMLDictionary

A simple way to parse and generate XML on iOS and Mac OS. Converts an XML file to an NSDictionary which can then be easily traversed using the standard Cocoa keyPath mechanism. Can also output the contents of any dictionary as XML.

iCarousel icon

iCarousel

iCarousel is a class designed to simplify the implementation of various types of carousel on iPhone and iPad. iCarousel implements a number of common effects such as cylindrical, flat and "CoverFlow" style carousels.

Console icon

iConsole

Lightweight in-app console class for logging and debugging iPhone apps. Easy to integrate. Provides automatic crash logs and a command line interface for tweaking application parameters. This class is for use on iPhone/iPod Touch and iPad only.

iNotify icon

iNotify

Library for displaying remotely administered notifications within a Mac or iPhone app. Similar to Apple's push notifications, but more lightweight and only displayed at app launch time. Perfect for cross-promoting apps or pointing out non-obvious features.

iRate icon

iRate

A handy class that prompts users of your iPhone or Mac App Store app to rate your application after using it for a while. Similar to Appirater, but with a simpler, cleaner interface and automatic support for iOS fast application switching.

Version icon

iVersion

Library for dynamically checking for updates to Mac/iPhone App Store apps from within the application and notifying users about the new release. Can also notify users about new features in the app the first time they launch after an upgrade.

Example Projects

These are a collection of games, technology demos and experiments using Cocoa. They are mostly undocumented and in various stages of completenes, however they have all been tested to compile and work correctly in Xcode 3.2.5.

Rainbow Blocks icon

Rainbow Blocks

Rainbow Blocks is a block-sliding puzzle game for the iPhone, iPad and Mac. Rainbow Blocks is built using web-based technology (HTML, CSS and JavaScript) wrapped in a native Cocoa application shell. This allows it to be played in an ordinary web browser and easily ported to a variety of platforms.

Donations

If you find our open source offerings useful, please support us by making a small donation. Your funding will help to ensure continued development of these tools.