Better Mac support #126

Closed
wants to merge 5 commits into
from

Projects

None yet

3 participants

@deapsquatter

Hi Stuart,

The changed .cs files will further Mac support. However there also changes to csproj files and added csproj files for file linking support which you probably do not want. Apologies, I need to structure these commits better so you can just do a straight merge.

kevinknoop added some commits Jan 10, 2013
kevinknoop Converted from PCL projects to file linking.
Added image attachment support to Share and Email plugins.
a080ca9
kevinknoop Better Mac support.
vNext via file linking with .pcl projects.
85309ce
Contributor
slodge commented Jan 21, 2013

Looked through it briefly... but not done a full build/test/play yet - too busy!

Also linking this to #77

kevinknoop added some commits Jan 24, 2013
kevinknoop Changed MessageElement BackgroundColor to clear to fix odd looking gr…
…ouped UITableView.
5874df8
kevinknoop Merge branch 'vnext' of git://github.com/slodge/MvvmCross into vnext
Conflicts:
	Cirrious/Plugins/Share/Cirrious.MvvmCross.Plugins.Share.Touch/MvxShareTask.cs
db7f22a
@slodge slodge referenced this pull request Mar 9, 2013
Closed

Add support for Xamarin.Mac #77

kevinknoop Cleaning up e6dab67
@slodge slodge referenced this pull request Sep 21, 2013
Closed

PR brings Mac up to v3 #438

Contributor
tofutim commented Sep 25, 2013

Hello Mac users! I'm working on MvvmCross Mac.

Contributor
tofutim commented Sep 25, 2013

I understand someone has lists working for Mac. Can someone advise?

I'll blog about this. Hopefully this week.

Contributor
tofutim commented Sep 25, 2013

Is there a repo with your changes I can take a look? I do need to setup a
Table View.

On Tue, Sep 24, 2013 at 10:30 PM, deapsquatter notifications@github.comwrote:

I'll blog about this. Hopefully this week.


Reply to this email directly or view it on GitHubhttps://github.com/slodge/MvvmCross/pull/126#issuecomment-25062828
.

Contributor
tofutim commented Sep 26, 2013

Kevin, any help you can give me on NSCollectionView or NSTableView would be much appreciated. I'm really struggling on this end. Even unprocessed (not written up) clues would be much appreciated.

It does seem there are two ways of approaching this, one is to create a View (but then IB support is trickier) or to have a Target. I tried both with no luck. In the case of NSCollectionView the Content is an array of NSObjects. I'm not sure how to turn my List to NSObjects, so it might be a lost cause, esp. since there is no NSCollectionViewSource.

But perhaps NSTableView would be better.

Contributor
slodge commented Sep 26, 2013

From jabbr:

tofutim
how do i go from a List to an array of NSObjects?
12:39:10 AM
@slodge1 I'm having a hard time making NSCollectionView work
1:31:31 AM
can I ask you a few questions?
1:31:36 AM
hm, maybe this cannot be done
1:44:31 AM
NSCollectionView.Content takes NSObject[]
1:44:44 AM
maybe there isn't a way to put my C# List<...> to an NSObject?
1:45:02 AM
well, good news, wild beavers are now available in England
5:49:31 AM
deapsquatter1!
6:51:52 AM
deapsquatter1
6:57:47 AM
yes sir
6:57:53 AM
@tofutim I've seen your messages. I haven't forgotten. Just swamped with other work atm.
7:00:01 AM
tofutim
@deapsquatter1 thanks!
7:01:32 AM
did you work on collectionview as well?
7:01:52 AM
it seems that there are actually two distinct approaches to binding
7:03:53 AM

  1. Target, e.g., MvxNSCollectionViewItemSourceTargetBinding
    7:04:17 AM
    or 2. View, e.g., MvxCollectionView
    7:04:34 AM
    deapsquatter1
    I used a NSTableView
    7:18:47 AM
    I then created a bindable NSTableViewSource based on the same pattern the iOS stuff uses in Mvx.
    7:20:28 AM
    The actual binding expression is inserted using Xcode and one of the fields in the designer - think its in the NSColumn somewhere.
    7:22:36 AM
    Obviously needs a blog post to explain in detail...
    7:23:30 AM
    tofutim
    is this code in github or anywhere?
    7:26:40 AM
    also, is the whole view an NSTableView (err MvxTableView) or do you target bind to it
    7:27:09 AM
    deapsquatter1
    The code is not available yet - I'll do that with the blog post.
    7:29:28 AM
    Its a regular NSTableView. Bindable classes are derived for the source,column and cells.
    7:30:49 AM
Contributor
slodge commented Oct 6, 2013

Been playing this evening

Trying to get some ApiExamples working.

Will try to do more on this soon - currently 'some' are working in - https://github.com/MvvmCross/MvvmCross/blob/mac-play/Samples/ApiExamples/ApiExamples.Mac/Views/Views.cs

Used lots from:

Contributor
slodge commented Feb 2, 2014

Closing this one - thanks :)

Other Mac ones are still open - at least some of them are flagged 3.1.2

@slodge slodge closed this Feb 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment