 	@IBAction func restorePlaylists(sender: NSButton) {
 		if let playArray = defaults.arrayForKey(UserSetting.Playlists.userDefaultsKey) {
 			playlistArrayController.removeObjects(playlistArrayController.arrangedObjects as! [AnyObject])
-//			self.playlists = [PlayList]()
 
 			for playlist in playArray {
 				let play = playlist as! Dictionary<String,AnyObject>

	
	func draggingEntered(sender: NSDraggingInfo!) -> NSDragOperation {
		let pasteboard = sender.draggingPasteboard()
//		let filteringOptions = [NSPasteboardURLReadingContentsConformToTypesKey:NSImage.imageTypes()]

		print("draggingEntered")

		if pasteboard.canReadItemWithDataConformingToTypes([NSPasteboardURLReadingFileURLsOnlyKey])
			/*.canReadObject(forClasses: [NSURL.self], options: filteringOptions)*/ {
			return .Copy
		}
		return .Copy
	}
	
	func draggingUpdated(sender: NSDraggingInfo!) -> NSDragOperation  {
		print("draggingUpdated")
		return NSDragOperation.Copy
	}
	
	func tableView(tableView: NSTableView, namesOfPromisedFilesDroppedAtDestination dropDestination: NSURL, forDraggedRowsWith indexSet: NSIndexSet) -> [String] {
		print("drop(s) \(dropDestination)")
		return ["tom","dick","harry"]
	}

	func tableView(tableView: NSTableView, pasteboardWriterForRow row: Int) -> NSPasteboardWriting? {
//		let type = (tableView == playlistTableView ? Constants.PlayList : Constants.PlayItem)
		let item = NSPasteboardItem()
		
		item.setString(String(row), forType: "public.data")

	}

	func tableView(tableView: NSTableView, writeRowsWith rowIndexes: NSIndexSet, to pboard: NSPasteboard) -> Bool {
		let data = NSKeyedArchiver.archivedDataWithRootObject(rowIndexes)
		let registeredTypes:[String] = ["public.data"]

