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

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

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

  4. 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 [...]

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