         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 {

            segmentedControl?.setLabel(viewController.preferencesTitle(), forSegment: i)
            segmentedControl?.setWidth(segmentSize.width, forSegment: i)
            if let cell = segmentedControl?.cell as? NSSegmentedCell {
                cell.setTag(i, forSegment: i++)
            }
            
        }

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