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

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

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

