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

    ///
    override init(contentRect: NSRect, styleMask aStyle: Int, backing bufferingType: NSBackingStoreType, `defer` flag: Bool) {
        
        super.init(contentRect: contentRect, styleMask: aStyle, backing: bufferingType, `defer`: flag)
        
        setFrameAutosaveName(CCNPreferencesWindowFrameAutoSaveName)
        setFrameFromString(CCNPreferencesWindowFrameAutoSaveName)

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