-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial attempt at adding Unified support.
Xamarin.iOS is failing with the follow error: > Objective-C exception thrown. Name: NSInvalidArgumentException ..... unrecognized selector sent to instance https://www.dropbox.com/s/l7k43fheu79uj88/Screenshot%202014-11-21%2007.22.55.png?dl=0 Xamarin.Mac Unified is not working at all. Need to figure out what the #ifdef should be
- Loading branch information
Showing
54 changed files
with
2,035 additions
and
107 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
|
||
using Foundation; | ||
using AppKit; | ||
|
||
namespace JsBridge.Mac.Unified.Sample | ||
{ | ||
public partial class AppDelegate : NSApplicationDelegate | ||
{ | ||
MainWindowController mainWindowController; | ||
|
||
public AppDelegate () | ||
{ | ||
} | ||
|
||
public override void FinishedLaunching (NSObject notification) | ||
{ | ||
mainWindowController = new MainWindowController (); | ||
mainWindowController.Window.MakeKeyAndOrderFront (this); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?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>CFBundleDisplayName</key> | ||
<string>JsBridge.Mac.Unified.Sample</string> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>en</string> | ||
<key>CFBundleIconFile</key> | ||
<string></string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com..JsBridge.Mac.Unified.Sample</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>JsBridge.Mac.Unified.Sample</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleVersion</key> | ||
<string>1</string> | ||
<key>LSMinimumSystemVersion</key> | ||
<string>10.8</string> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>cdeutschx</string> | ||
<key>NSMainNibFile</key> | ||
<string>MainMenu</string> | ||
<key>NSPrincipalClass</key> | ||
<string>NSApplication</string> | ||
</dict> | ||
</plist> |
103 changes: 103 additions & 0 deletions
103
JsBridge.Mac.Unified.Sample/JsBridge.Mac.Unified.Sample.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectTypeGuids>{A3F8F2AB-B479-4A4A-A458-A89E7DC349F1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
<ProductVersion>8.0.30703</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{C28C8866-0041-4C99-AB01-A2FAD80622D0}</ProjectGuid> | ||
<OutputType>Exe</OutputType> | ||
<RootNamespace>JsBridge.Mac.Unified.Sample</RootNamespace> | ||
<MonoMacResourcePrefix>Resources</MonoMacResourcePrefix> | ||
<AssemblyName>JsBridge.Mac.Unified.Sample</AssemblyName> | ||
<TargetFrameworkIdentifier>Xamarin.Mac</TargetFrameworkIdentifier> | ||
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug</OutputPath> | ||
<DefineConstants>DEBUG;</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<ConsolePause>false</ConsolePause> | ||
<UseSGen>false</UseSGen> | ||
<IncludeMonoRuntime>false</IncludeMonoRuntime> | ||
<EnablePackageSigning>false</EnablePackageSigning> | ||
<CodeSigningKey>Mac Developer</CodeSigningKey> | ||
<EnableCodeSigning>false</EnableCodeSigning> | ||
<CreatePackage>false</CreatePackage> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>full</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release</OutputPath> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<ConsolePause>false</ConsolePause> | ||
<LinkMode>SdkOnly</LinkMode> | ||
<UseSGen>false</UseSGen> | ||
<IncludeMonoRuntime>true</IncludeMonoRuntime> | ||
<EnablePackageSigning>false</EnablePackageSigning> | ||
<CodeSigningKey>Developer ID Application</CodeSigningKey> | ||
<EnableCodeSigning>true</EnableCodeSigning> | ||
<CreatePackage>true</CreatePackage> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AppStore|AnyCPU' "> | ||
<DebugType>full</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\AppStore</OutputPath> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<ConsolePause>false</ConsolePause> | ||
<LinkMode>SdkOnly</LinkMode> | ||
<UseSGen>false</UseSGen> | ||
<IncludeMonoRuntime>true</IncludeMonoRuntime> | ||
<PackageSigningKey>3rd Party Mac Developer Installer</PackageSigningKey> | ||
<CreatePackage>true</CreatePackage> | ||
<CodeSigningKey>3rd Party Mac Developer Application</CodeSigningKey> | ||
<EnableCodeSigning>true</EnableCodeSigning> | ||
<EnablePackageSigning>true</EnablePackageSigning> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="Xamarin.Mac" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Folder Include="Resources\" /> | ||
<Folder Include="www\" /> | ||
<Folder Include="www\js\" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="MainWindow.cs" /> | ||
<Compile Include="MainWindow.designer.cs"> | ||
<DependentUpon>MainWindow.cs</DependentUpon> | ||
</Compile> | ||
<Compile Include="MainWindowController.cs" /> | ||
<Compile Include="MainWindowController.designer.cs"> | ||
<DependentUpon>MainWindowController.cs</DependentUpon> | ||
</Compile> | ||
<Compile Include="Main.cs" /> | ||
<Compile Include="AppDelegate.cs" /> | ||
<Compile Include="AppDelegate.designer.cs"> | ||
<DependentUpon>AppDelegate.cs</DependentUpon> | ||
</Compile> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<InterfaceDefinition Include="MainWindow.xib" /> | ||
<InterfaceDefinition Include="MainMenu.xib" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Info.plist" /> | ||
<None Include="..\JsBridge.iOS.Classic.Sample\www\js\mt.js"> | ||
<Link>www\js\mt.js</Link> | ||
</None> | ||
<None Include="..\JsBridge.iOS.Classic.Sample\www\index.html"> | ||
<Link>www\index.html</Link> | ||
</None> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Mac\Xamarin.Mac.CSharp.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
|
||
using AppKit; | ||
|
||
namespace JsBridge.Mac.Unified.Sample | ||
{ | ||
static class MainClass | ||
{ | ||
static void Main (string[] args) | ||
{ | ||
NSApplication.Init (); | ||
NSApplication.Main (args); | ||
} | ||
} | ||
} |
Oops, something went wrong.