 	private let windowAutosaveName = NSWindow.FrameAutosaveName(rawValue: "MainWindow")
 	static var didPositionWindowOnFirstRun = false
 
-	private var currentFeedOrFolder: DisplayNameProvider? = nil {
+	private var currentFeedOrFolder: AnyObject? = nil {
 		didSet {
 			updateWindowTitle()
 		}


	func updateWindowTitle() {

		if currentFeedOrFolder == nil {
			window?.title = appDelegate.appName!
			return
		}
		
		if let folder = currentFeedOrFolder as? Folder {
			if folder.unreadCount < 1 {
				window?.title = "\(folder.nameForDisplay)"
			}
			else {
				window?.title = "\(folder.nameForDisplay) (\(folder.unreadCount))"
			}
			return
		}
		
		if let feed = currentFeedOrFolder as? Feed {
			if feed.unreadCount < 1 {
				window?.title = "\(feed.nameForDisplay)"
			}
			else {
				window?.title = "\(feed.nameForDisplay) (\(feed.unreadCount))"
			}
			return
		}
		

			return
		}
		
		guard selectedObjects?[0] is DisplayNameProvider && selectedObjects?[0] is UnreadCountProvider else {
			currentFeedOrFolder = nil
			return
		}
		
		currentFeedOrFolder = selectedObjects?[0]
		
	}
	
