Tag Archives: Protocol

TDD in Objective-C: Scoping an iOS Project via Mocks and Protocols with Unit Tests in Kiwi

Overview The following is an overview of how I approach Test Driven Development (TDD) for iOS projects. I use Kiwi as my TDD tool of choice, but you could apply the following with other TDD tools if you like. The only prerequisite is that the TDD tool supports mocks on protocols. App Requirements For this example I’m building an application… Read more »

Designing a Protocol for the Group Edit View Controller

In my last post, I decided to remove my Singleton object in preference for passing the NSManagedObjectContext around between view controllers.  In my application, I have a table view that shows a list of ‘groups’, and a view that provides the form for entering or altering the group ‘title’. The intention is to allow the user to both add new… Read more »