             return nil
         }
         
-        let colorString: NSString = source[xcodeKey] as NSString
+        let colorString = source[xcodeKey] as NSString
         let color = convertColorStringToColor(colorString)
         
         if color == 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 serializedData!.writeToFile(destinationPath, atomically: true)
}

func convertXcodeThemeToCotEditor(xcodeTheme: NSDictionary) -> [String: AnyObject]? {
    let syntaxColors = xcodeTheme["DVTSourceTextSyntaxColors"] as? [String:NSString]
    
    if syntaxColors == nil {
