Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Frobulate the ObjC way (from http://robnapier.net/go-is-a-shop-built-jig)
func frobulate(#error: NSErrorPointer) -> Bool {
if self.thingsToFrobulate > 0 {
if !logit(FrobulatingMessage, error: error) {
return false
}
if !self.removeOldest(error: error) {
return false
}
let youngest = self.processOld(error: error)
if youngest == nil {
return false
}
if !self.doNewThing(youngest!, error: error) {
return false
}
}
return self.cleanup(error: error)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment