 //
 //  CCNPreferencesWindowController.swift
 //
-//  Original Objective-C code created by Frank Gregor on 16/01/15, adapted to Swift by Bruno Vandekerkhove on 30/08/15.
+//  Original Objective-C code created by Frank Gregor on 16/01/15, adapted by Bruno Vandekerkhove on 30/08/15.
 //  Copyright (c) 2015 cocoa:naut. All rights reserved.
 //
 

        
    }
    
    func toolbarAllowedItemIdentifiers(toolbar: NSToolbar) -> [AnyObject] {
        
        return toolbarDefaultItemIdentifiers(toolbar)
        
    }
    
    func toolbarSelectableItemIdentifiers(toolbar: NSToolbar) -> [AnyObject] {
        
        return toolbarDefaultItemIdentifiers(toolbar)
        

    func toolbar(toolbar: NSToolbar, itemForItemIdentifier itemIdentifier: String, willBeInsertedIntoToolbar flag: Bool) -> NSToolbarItem? {
        
        if itemIdentifier == NSToolbarFlexibleSpaceItemIdentifier {
            return nil
        }
        else if itemIdentifier == CCNPreferencesToolbarSegmentedControlIdentifier {
            
            let toolbarItem = NSToolbarItem(itemIdentifier: itemIdentifier)
            toolbarItem.view = segmentedControl
            
            return toolbarItem
            
