func getCellRow()

in SasquatchMac/SasquatchMac/ViewControllers/TransmissionViewController.swift [462:477]


  func getCellRow(forTextField textField: NSTextField!) -> Int {
    let cell = textField.superview as! NSTableCellView
    let key:NSTextField  =  cell.subviews[cellSubviews.key.rawValue] as! NSTextField
    switch key.stringValue {
    case propertyKeys[1]:
      return kAppNameRow
    case propertyKeys[2]:
      return kAppVersionRow
    case propertyKeys[3]:
      return kAppLocaleRow
    case propertyKeys[4]:
      return kUserIdRow
    default:
      return 0
    }
  }