Mac / iPhone App Development
Home of a Small Time Developer
  1. 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, anyway this [...]

  2. 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 we [...]

  3. 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 the monitor
    FileSystemMonitor [...]

  4. Dynamic Arrays with C

    In the final push to add syntax highlighting to iVersion I have been working on optimising the parser.
    In the inner parsing loop I have been using the standard NSMutableArray to keep track of various objects and tokens. Objective C message passing is of course an order of times slower than a C function call, even [...]

  5. 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. In [...]