Mac / iPhone App Development
Home of a Small Time Developer
  1. iPhone Expat XML Parser Wrapper

    Often in iPhone projects I’ve needed to parse XML documents from the internet. I want the data to be processed  and shown to the user as quickly as possible. If the file is large I don’t want to have to store the entire contents in memory. Using NSXMLParsers initWithURL: method the xml file is downloaded synchronously with NSURLConnection [...]

  2. Multithreading with core Data

    Working with core data in a multi threaded environment you have to extremely careful For example if were creating a news application, we want to be able to import news in the background and display updates to the user with no interruption of the GUI. The task can be divided into several stages: Download the [...]

  3. Adding Reachability Code to your app

    Ok so iVersion 1.4 was declined due to not loading correctly when their is no network connectivity. When the device is connected to a cellular network, iVersion does not load its contents.  After the user enters the URL (http://svn.collab.net/repos/svn/trunk/) and taps “connect,” an error message is received. Apparently the error message is not clear enough or something, [...]

  4. UIKit Modal Prompt

    in order to not lock the ui iVersion runs it’s svn commands in a seperate threads. The promblem arises when one of thses threads needs to prompt for a value e.g. a username / password. Firstly UIKit does not provide a modal alert view and secondly UIKit should only be called from the mainThread. First [...]

  5. iPhone File System Monitor

    I require simple for system monitoring for a new (undisclosed) iphone project. It doesn’t appear that there is any equivilant to ionotify for the iphone, so I whipped up this polling file system monitor which meets my basic requirements. If you find this code useful feel free to use / distribute etc. #include “FileSystemMonitor.h” //Setup [...]

  6. iVersion

    iVersion is a SVN client for the iphone 3G and ipod touch. iVersion uses the open source subversion 1.6 client library, written in plain C, with an Objective C wrapper for simpler interfacing with the Objective C UI. Using an objective C Wrapper the client can easily be abstracted to work with other version control protocols. [...]