Ignore:
Timestamp:
May 2, 2019 10:39:11 PM (13 months ago)
Author:
meeh <meeh@…>
Branches:
master
Children:
2af1f68
Parents:
214efb8
Message:

Mac OSX Launcher: Adding Swift 4.2 support to the preferences UI classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • launchers/macosx/I2PLauncher/userinterface/preferences/PreferencesViewController+TableView.swift

    r214efb8 r56eb11bc  
    2525  }
    2626 
    27   func tableViewDoubleClick(_ sender:AnyObject) {
     27  @objc func tableViewDoubleClick(_ sender:AnyObject) {
    2828    print("Double click")
    2929    // 1
     
    3333        return
    3434    }
    35     print(item.name)
     35    print(item.name as Any)
    3636     /*
    3737     if item.isFolder {
     
    4848  func tableView(_ tableView: NSTableView, sortDescriptorsDidChange oldDescriptors: [NSSortDescriptor]) {
    4949    // 1
    50     guard let sortDescriptor = self.advPrefTableView.sortDescriptors.first else {
     50    guard let /*sortDescriptor*/ _ = self.advPrefTableView.sortDescriptors.first else {
    5151      return
    5252    }
     
    8686   
    8787    // 3
    88     if let cell = tableView.make(withIdentifier: cellIdentifier, owner: nil) as? NSTableCellView {
     88    if let cell = tableView.makeView(withIdentifier: NSUserInterfaceItemIdentifier(rawValue: cellIdentifier), owner: nil) as? NSTableCellView {
    8989      cell.textField?.stringValue = text
    9090      //cell.imageView?.image = image ?? nil
Note: See TracChangeset for help on using the changeset viewer.