 
 let _settings_defaults = NSUserDefaults.standardUserDefaults()
-var _settings_valuesCache = Dictionary<String, NSObject>()
+var _settings_valuesCache = Dictionary<String, AnyObject>()
 
 class Settings: NSObject {
 
 	private class func set(key: String, _ value: NSObject?) {
 		if let v = value {
 			_settings_defaults.setObject(v, forKey: key)
-			DLog("Set %@: %@", key, v)
 		} else {
 			_settings_defaults.removeObjectForKey(key)
-			DLog("Cleared %@", key)
 		}
 		_settings_valuesCache[key] = value
 		_settings_defaults.synchronize()
 	}
 
-	private class func get(key: String) -> NSObject? {
-		if let v = _settings_valuesCache[key] {
+	private class func get(key: String) -> AnyObject? {
+		if let v: AnyObject = _settings_valuesCache[key] {
 			return v
 		} else {
-			if let vv = _settings_defaults.objectForKey(key) as? NSObject {
+			if let vv: AnyObject = _settings_defaults.objectForKey(key) {
 				_settings_valuesCache[key] = vv
 				return vv
 			} else {

	/////////////////////////////////

	class var sortMethod: Int {
		get { if let n = get("SORT_METHOD_KEY") as? Int { return n } else { return 0 } }
		set { set("SORT_METHOD_KEY", newValue) }
	}

	class var statusFilteringMode: Int {
		get { if let n = get("STATUS_FILTERING_METHOD_KEY") as? Int { return n } else { return 0 } }
		set { set("STATUS_FILTERING_METHOD_KEY", newValue) }
	}

	class var lastPreferencesTabSelected: Int {
		get { if let n = get("LAST_PREFS_TAB_SELECTED") as? Int { return n } else { return 0 } }
		set { set("LAST_PREFS_TAB_SELECTED", newValue) }
	}

	class var closeHandlingPolicy: Int {
		get { if let n = get("CLOSE_HANDLING_POLICY") as? Int { return n } else { return 0 } }
		set { set("CLOSE_HANDLING_POLICY", newValue) }
	}

	class var mergeHandlingPolicy: Int {
		get { if let n = get("MERGE_HANDLING_POLICY") as? Int { return n } else { return 0 } }
		set { set("MERGE_HANDLING_POLICY", newValue) }
	}


	}

	class var checkForUpdatesInterval: Int {
		get { return get("UPDATE_CHECK_INTERVAL_KEY") as? Int ?? 8 }
		set { set("UPDATE_CHECK_INTERVAL_KEY", newValue) }
	}

	///////////////////////////

	class var statusFilteringTerms: [String] {
		get { return get("STATUS_FILTERING_TERMS_KEY") as? [String] ?? [] }
		set { set("STATUS_FILTERING_TERMS_KEY", newValue) }
	}

	class var commentAuthorBlacklist: [String] {
		get { return get("COMMENT_AUTHOR_BLACKLIST") as? [String] ?? [] }
		set { set("COMMENT_AUTHOR_BLACKLIST", newValue) }
	}

	class var hotkeyLetter: String {
		get { return get("HOTKEY_LETTER") as? String ?? "T" }
		set { set("HOTKEY_LETTER", newValue) }
	}

