     return serializedData!.writeToFile(destinationPath, atomically: true)
 }
 
-func convertXcodeThemeToCotEditor(xcodeTheme: NSDictionary) -> Dictionary<String, AnyObject>? {
+func convertXcodeThemeToCotEditor(xcodeTheme: NSDictionary) -> [String: AnyObject]? {
     let syntaxColors = xcodeTheme["DVTSourceTextSyntaxColors"] as? [String:NSString]
     
     if syntaxColors == nil {


extension NSColor {
    public func colorCodeWithType(codeType: WFColorCodeType) -> String? {
        var code: String? = nil

        let r: UInt8 = UInt8(roundf(Float(255 * self.redComponent)))
        let g: UInt8 = UInt8(roundf(Float(255 * self.greenComponent)))
        let b: UInt8 = UInt8(roundf(Float(255 * self.blueComponent)))
        let alpha: Double = Double(self.alphaComponent)

        switch codeType {
        case .WFColorCodeHex:

    return pList
}

func saveTheme(theme: [String: AnyObject], toPath path: String) -> Bool {
    var error: NSError?
    let serializedData: NSData? = NSJSONSerialization.dataWithJSONObject(
        theme,
