 
 extension ExtensionPointAddViewController: NSTableViewDelegate {
 	
-	private static let cellIdentifier = NSUserInterfaceItemIdentifier(rawValue: "AccountCell")
-	
 	func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView? {
 		
 		if let cell = tableView.makeView(withIdentifier: NSUserInterfaceItemIdentifier(rawValue: "Cell"), owner: nil) as? ExtensionPointAddTableCellView {

//

import AppKit
import FeedProvider

class ExtensionPointAddViewController: NSViewController {

		let extensionPointType = availableExtensionPointTypes[selectedRow]
		switch extensionPointType {
		case .marsEdit, .microblog:
			
			let windowController = ExtensionPointEnableBasicWindowController()
			windowController.extensionPointType = extensionPointType
			windowController.runSheetOnWindow(self.view.window!)
			extensionPointAddWindowController = windowController
			
		case .twitter:

			let oauth = OAuth1Swift(
				consumerKey: Secrets.twitterConsumerKey,
				consumerSecret: Secrets.twitterConsumerSecret,
				requestTokenUrl: "https://api.twitter.com/oauth/request_token",
				authorizeUrl:    "https://api.twitter.com/oauth/authorize",
				accessTokenUrl:  "https://api.twitter.com/oauth/access_token"
			)
			
			self.oauth = oauth
			oauth.authorizeURLHandler = self
			
			oauth.authorize(withCallbackURL: callbackURL) { result in
				switch result {
				case .success(let tokenSuccess):
					//				let token = tokenSuccess.credential.oauthToken
					//				let secret = tokenSuccess.credential.oauthTokenSecret
					let screenName = tokenSuccess.parameters["screen_name"] as? String ?? ""
					
					print("******************* \(screenName)")
					
				case .failure(let oauthSwiftError):
					NSApplication.shared.presentError(oauthSwiftError)
				}
				
				self.oauth?.cancel()
				self.oauth = nil
			}
			
		}
		
		tableView.selectRowIndexes([], byExtendingSelection: false)
