                     toolbarItem.toolTip = tooltip
                 }
                 toolbarItem.target = self
-                toolbarItem.action = Selector("toolbarItemAction:")
+                toolbarItem.action = #selector(CCNPreferencesWindowController.toolbarItemAction(_:))
                 
                 return toolbarItem
                 

        
        super.init(window: nil)
                
        window = CCNPreferencesWindow(contentRect: CCNPreferencesDefaultWindowRect, styleMask: NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSUnifiedTitleAndToolbarWindowMask, backing: .Buffered, `defer`: true)
        
        window?.movableByWindowBackground = true


        segmentedControl?.segmentCount = viewControllers.count
        segmentedControl?.segmentStyle = .TexturedSquare
        segmentedControl?.target = self
        segmentedControl?.action = #selector(CCNPreferencesWindowController.segmentedControlAction(_:))
        segmentedControl?.identifier = CCNPreferencesToolbarSegmentedControlIdentifier
        
        if let cell = segmentedControl?.cell as? NSSegmentedCell {
