Code

iPhoneBrowser v0.1

iPhone Browser is a sample project that demonstrates the AFC classes I've written. These classes are intended to be an object-oriented, Cocoa-friendly framework to talk to AFC devices such as the iPod touch and iPhone and are released under the GPL 3 license.

The very inner workings of the code are based on MobileDevice.h taken from the community and Disk for iPhone by Allen Porter. The OO framework on top of this is the main reason for this project's release.

Important: iPhoneBrowser (as well as more or less all of the iPhone products out there, open source or not) use the private, undocumented MobileDevice framework that iTunes uses. KennettNet Software Limited or any of it's employees cannot be held responsible for any data loss that may occur, and this code is provided without warranty.

Also important: Deleting random files is bad. You will break stuff.

Features

Demo Application

  • Simple browsing of the iPhone/iPod touch's file system.
  • Can preview text, image and QuickTime (audio, video) files.
  • Can copy files to/from the device.

Code

  • Easy-to-use Objective-C classes for working with the devices.
  • Convinience methods for working the device's filesystem (for example: -(NSData *)contentsOfFileAtPath:(NSString *)path;).
  • Access to raw filesystem methods if needed.

Requirements

  • iTunes 7.4 (ish) or higher installed
  • Programmed in Xcode 3.0 on Mac OS X 10.5. The demo app uses features in the 10.5 frameworks, but the AFC classes will compile on 10.4. It shouldn't be too hard to make the demo app work on 10.4 also.

iPhone Browser
iPhoneBrowser showing pictures from my iPhone's camera roll.
Yes, that's a model Pendolino. Ahem.

You can download the iPhoneBrowser 0.1 Xcode project here (244Kb zip archive).

© 2006-2008, KennettNet Software Limited