title: @MainActor issues with NSControlTextEditingDelegate and NSTableViewDataSource
body: <p>I am encountering a problem in a @MainActor NSViewController containing an NSTableView and an NSTextField. For example, in the delegates I these warnings:</p>
  <blockquote>
  <p>Instance method 'controlTextDidChange' isolated to global actor
  'MainActor' can not satisfy corresponding requirement from protocol
  'NSControlTextEditingDelegate'</p>
  </blockquote>
  <p>and</p>
  <blockquote>
  <p>Instance method 'numberOfRows(in:)' isolated to global actor
  'MainActor' can not satisfy corresponding requirement from protocol
  'NSTableViewDataSource'</p>
  </blockquote>
  <p>I am new to using the new swift concurrency features and I don't know how to solve these warnings.  The code is complex, but the simplified version is as follows:</p>
  <pre><code>      @MainActor public class DataPageTemplate: NSViewController,NSTextFieldDelegate, NSTableViewDelegate, NSTableViewDataSource {
          
              weak var myTable: NSTableView!
       
      ...
      
          public func numberOfRows(in tableView: NSTableView) -&gt; Int {  return (noInputLines?.count ?? 0) + (inputLines?.count ?? 0) }
  
          }
  </code></pre>
  <p>numberOfRows() is where I get the warning.</p>
  <p>I am running the same code (with obvious adjustments) for the same app to run under iOS with the same table and the same delegates for the UIKit equivalent and have no warnings at all:</p>
  <pre><code>public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {  return (noInputLines?.count ?? 0) + (inputLines?.count ?? 0)  }
  </code></pre>
  <p>I would appreciate any suggestion</p>