Skip to main content


Showing posts from October, 2012


Flycut is a clean and simple clipboard manager for developers. It based on open source app called Jumpcut. Flycut is also open source:

Mac App Store


NSHipster is a nicely written journal of the overlooked bits in Objective-C and Cocoa. Updated weekly.

Promoting Apps with Smart App Banners on web page html

Sim Deploy

Tired of digging around in your library folder to install simulator builds? Need to distribute simulator builds to non-technical people in your organization? Sim Deploy provides drag and drop installation of iOS simulator builds.
Drag and Drop InstallationRemote URL InstallationCustom URL Handling for Dead Simple DistributionAutomatically Launches Simulator and Installed ApplicationEasily Integrates With Continuous Integration ServersSpacemanlabs

Create Pass with Passbook

Passes are a digital representation of information that might otherwise be printed on small pieces of paper or plastic. They let users take an action in the physical world, in the same way as boarding passes, membership cards, and coupons. The pass library contains the user’s passes. Users view and manage their passes using the Passbook app.

Apple Developer PassKit Programming Guide

Your source for free iOS 6 Passbook passes; create your own iOS 6 Passbook pass!

Content-Type: application/
Content-Disposition: attachment; filename="pass.pkpass"

appledoc integration

Install appledoc

Go to Project > Add Target “Documentation” and then Build phases > Add build phase > Add run script

/usr/local/bin/appledoc \
--project-name "MyProject" \
--project-company "MyCompany" \
--company-id "com.mydomain" \
--output build \
--docsetutil-path `xcode-select -print-path`/usr/bin/docsetutil \
--create-docset \
--install-docset \
--create-html \
--exit-threshold 2 \
--no-repeat-first-par \

Mobile Craft

OCUnit with asynchronous methods

Alternate A

   // create the semaphore and lock it once before we start
   // the async operation
   NSConditionLock * conditionLock = [NSConditionLock new];
   self.theLock = conditionLock;

   // start the async operation

   // now lock the semaphore - which will block this thread until
   // [self.theLock unlockWithCondition:1] gets invoked
   [self.theLock lockWhenCondition:1];

   // make sure the async callback did in fact happen by
   // checking whether it modified a variable
   STAssertTrue (self.testState != 0, @"delegate did not get called");

   [self.theLock unlockWithCondition:1];

Apple Developer NSConditionLock Class Reference

Alternate B

dispatch_semaphore_t semaphore = dispatch_semaphore_create(0);


while (dispatch_semaphore_wait(semaphore, DISPATCH_TIME_NOW)) {
[[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:10]];



The ios-sim tool is a command-line utility that launches an iOS application on the iOS Simulator. This allows for niceties such as automated testing without having to open Xcode.


Choose the device family to simulate, i.e. iPhone or iPad.Setup environment variables.Pass arguments to the application.See the stdout and stderr, or redirect them to files.See the --help option for more info.phonegap / ios-sim