Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Casting a Task> to an NSMutableArray

$
0
0

I'm new to Mac coding and am creating a MacOS Cocoa App and PCL model project, using SQLite-net-pcl. I've implemented KVC but am now facing the challenge of getting an NSMutableArray for binding to the Xcode TableView object.

Is there a specific method in Xamarin for converting a C# List<> to an NSMutableArray? Or am I looking at this the wrong way?

My design:

  • PCL project with table model class(es)
  • Cocoa App project with Table View Controller and KVC mapping (including NSMutableArray and NSArray in a ViewModel class)
  • SQLite-net-pcl package to query database and return List

<

table class>


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>