Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a Xamarin.Mac test project
  • Loading branch information
anaisbetts committed Mar 8, 2013
1 parent 86953c9 commit b8d2100
Show file tree
Hide file tree
Showing 12 changed files with 4,583 additions and 1 deletion.
1 change: 1 addition & 0 deletions ReactiveUI.Cocoa/ReactiveUI.Cocoa.csproj
Expand Up @@ -88,6 +88,7 @@
<ItemGroup>
<Compile Include="NSRunloopScheduler.cs" />
<Compile Include="KVOObservableForProperty.cs" />
<Compile Include="ServiceLocationRegistration.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ReactiveUI\ReactiveUI_Mono.csproj">
Expand Down
20 changes: 19 additions & 1 deletion ReactiveUI_Mono.sln
Expand Up @@ -20,6 +20,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactiveUI.Cocoa", "Reactiv
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactiveUI.NLog_Mono", "ReactiveUI.NLog\ReactiveUI.NLog_Mono.csproj", "{67038157-092E-4D72-BAF4-949EB1532264}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XamarinMacPlayground", "XamarinMacPlayground\XamarinMacPlayground.csproj", "{F59E041D-0598-43FD-A6D5-52A25BAB8158}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -59,6 +61,8 @@ Global
{292A477B-BB94-43C1-984E-E177EF9FEDB7}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{292A477B-BB94-43C1-984E-E177EF9FEDB7}.Release|x86.ActiveCfg = Release|Any CPU
{292A477B-BB94-43C1-984E-E177EF9FEDB7}.Release|x86.Build.0 = Release|Any CPU
{482DE1CC-A08C-49F7-AB36-445DC9724482}.AppStore|Any CPU.ActiveCfg = Debug|Any CPU
{482DE1CC-A08C-49F7-AB36-445DC9724482}.AppStore|Any CPU.Build.0 = Debug|Any CPU
{482DE1CC-A08C-49F7-AB36-445DC9724482}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{482DE1CC-A08C-49F7-AB36-445DC9724482}.Debug|Any CPU.Build.0 = Debug|Any CPU
{482DE1CC-A08C-49F7-AB36-445DC9724482}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
Expand Down Expand Up @@ -113,11 +117,25 @@ Global
{761AC9BA-4A9C-440C-9B6C-2569978F0610}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{761AC9BA-4A9C-440C-9B6C-2569978F0610}.Release|x86.ActiveCfg = Release|Any CPU
{761AC9BA-4A9C-440C-9B6C-2569978F0610}.Release|x86.Build.0 = Release|Any CPU
{F59E041D-0598-43FD-A6D5-52A25BAB8158}.AppStore|Any CPU.ActiveCfg = AppStore|Any CPU
{F59E041D-0598-43FD-A6D5-52A25BAB8158}.AppStore|Any CPU.Build.0 = AppStore|Any CPU
{F59E041D-0598-43FD-A6D5-52A25BAB8158}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F59E041D-0598-43FD-A6D5-52A25BAB8158}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F59E041D-0598-43FD-A6D5-52A25BAB8158}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{F59E041D-0598-43FD-A6D5-52A25BAB8158}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{F59E041D-0598-43FD-A6D5-52A25BAB8158}.Debug|x86.ActiveCfg = Debug|Any CPU
{F59E041D-0598-43FD-A6D5-52A25BAB8158}.Debug|x86.Build.0 = Debug|Any CPU
{F59E041D-0598-43FD-A6D5-52A25BAB8158}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F59E041D-0598-43FD-A6D5-52A25BAB8158}.Release|Any CPU.Build.0 = Release|Any CPU
{F59E041D-0598-43FD-A6D5-52A25BAB8158}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{F59E041D-0598-43FD-A6D5-52A25BAB8158}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{F59E041D-0598-43FD-A6D5-52A25BAB8158}.Release|x86.ActiveCfg = Release|Any CPU
{F59E041D-0598-43FD-A6D5-52A25BAB8158}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = ReactiveUI\ReactiveUI_Mono.csproj
StartupItem = XamarinMacPlayground\XamarinMacPlayground.csproj
EndGlobalSection
GlobalSection(TestCaseManagementSettings) = postSolution
CategoryFile = ReactiveUI.vsmdi
Expand Down
24 changes: 24 additions & 0 deletions XamarinMacPlayground/AppDelegate.cs
@@ -0,0 +1,24 @@
using System;
using System.Drawing;
using MonoMac.Foundation;
using MonoMac.AppKit;
using MonoMac.ObjCRuntime;

namespace XamarinMacPlayground
{
public partial class AppDelegate : NSApplicationDelegate
{
MainWindowController mainWindowController;

public AppDelegate ()
{
}

public override void FinishedLaunching (NSObject notification)
{
mainWindowController = new MainWindowController ();
mainWindowController.Window.MakeKeyAndOrderFront (this);
}
}
}

10 changes: 10 additions & 0 deletions XamarinMacPlayground/AppDelegate.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions XamarinMacPlayground/Info.plist
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleName</key>
<string>XamarinMacPlayground</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSMinimumSystemVersion</key>
<string>10.6</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
18 changes: 18 additions & 0 deletions XamarinMacPlayground/Main.cs
@@ -0,0 +1,18 @@
using System;
using System.Drawing;
using MonoMac.Foundation;
using MonoMac.AppKit;
using MonoMac.ObjCRuntime;

namespace XamarinMacPlayground
{
class MainClass
{
static void Main (string[] args)
{
NSApplication.Init ();
NSApplication.Main (args);
}
}
}

0 comments on commit b8d2100

Please sign in to comment.