     let TableTextNoResults = "No Results Found"
     let TableTextError = "Error Loading Palettes :("
     let PaletteCellIdentifier = "PaletteCell"
+    let CopyTypeKey = "CopyType"
     let PalettesEndpoint = "http://www.colourlovers.com/api/palettes"
     let TopPalettesEndpoint = "http://www.colourlovers.com/api/palettes/top"
     
     // MARK: Properties
     
     var manager = AFHTTPRequestOperationManager()
+    var preferences = NSUserDefaults.standardUserDefaults()
     var showingTopPalettes = true
     var scrolledToBottom = false
     var noResults = false

    
    override func viewDidLoad() {
        super.viewDidLoad()
        var window = NSApplication.sharedApplication().windows[0] as NSWindow
        window.delegate = self
        NSNotificationCenter.defaultCenter().addObserver(self, selector: "scrollViewDidScroll:", name: NSViewBoundsDidChangeNotification, object: scrollView.contentView)
        setupCopiedView()
        setupTableText()
        setupAnimations()
        getPalettes(endpoint: TopPalettesEndpoint, params: nil)
    }
    
    deinit {

    
    @IBAction func copyTypeChanged(button: NSPopUpButton!) {
        copyType = button.indexOfSelectedItem
        preferences.setInteger(copyType, forKey: CopyTypeKey)
        preferences.synchronize()
    }
    
    // MARK: Functions
