Skip to content

Instantly share code, notes, and snippets.

@Pretz
Created January 22, 2015 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pretz/0090441cbbabee089976 to your computer and use it in GitHub Desktop.
Save Pretz/0090441cbbabee089976 to your computer and use it in GitHub Desktop.
import Foundation
class MyDictionary : NSDictionary {
convenience init(beAwesome:Bool) {
if (beAwesome) {
self.init(object: true, forKey:"awesome")
} else {
self.init(object: false, forKey:"awesome")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment