Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Commit

Permalink
fix Cocoa sample
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo committed Feb 21, 2018
1 parent 82d41bc commit a21c9f0
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 11 deletions.
8 changes: 6 additions & 2 deletions FeatureSamples/Cocoa/ViewController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,19 @@ public override async void ViewDidLoad()
UrhoSurface.AddSubview(view);

string assets = "../../../../../Assets";
Urho.Desktop.DesktopUrhoInitializer.CopyEmbeddedCoreDataTo(assets);
string coreDataPak = "../../../CoreData.pak";
if (!File.Exists(coreDataPak))
File.Copy("../../../CoreData.pak", Path.Combine(assets, "CoreData.pak"));

options = new ApplicationOptions("Data")
{
ExternalWindow = view.Handle,
LimitFps = true,
HighDpi = true,
ResourcePrefixPaths = new string[] { assets },
};
}

async void RunSample(Type type)
{
if (currentApp != null)
Expand Down
21 changes: 21 additions & 0 deletions FeatureSamples/FeatureSamples.userprefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<Properties StartupConfiguration="{75FEADAF-C698-4691-A1B9-48C5F04837FE}|Default">
<MonoDevelop.Ide.Workbench ActiveDocument="Core/Sample.cs">
<Files>
<File FileName="Core/01_HelloWorld/HelloWorld.cs" Line="23" Column="12" />
<File FileName="Cocoa/ViewController.cs" Line="62" Column="4" />
<File FileName="Cocoa/Main.cs" Line="14" Column="1" />
<File FileName="Core/Sample.cs" Line="115" Column="1" />
</Files>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|iPhoneSimulator" />
<MonoDevelop.Ide.ItemProperties.Urho.Samples.Droid PreferredExecutionTarget="Android.Android_Accelerated_Nougat" />
<MonoDevelop.Ide.DebuggingService.Breakpoints>
<BreakpointStore>
<Catchpoint exceptionName="System.Exception" includeSubclasses="True" />
</BreakpointStore>
</MonoDevelop.Ide.DebuggingService.Breakpoints>
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
<MonoDevelop.Ide.ItemProperties.Urho.Samples.iOS PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneSimulatorTarget.67372373-C96B-4133-B288-8AE80F8700C3" />
<MultiItemStartupConfigurations />
<MonoDevelop.Ide.ItemProperties.Urho.Samples.Cocoa PreferredExecutionTarget="Test1" />
</Properties>
3 changes: 1 addition & 2 deletions FeatureSamples/iOS/Urho.Samples.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<MtouchArch>i386</MtouchArch>
<MtouchArch>x86_64</MtouchArch>
<MtouchLink>None</MtouchLink>
<MtouchDebug>true</MtouchDebug>
<MtouchUseRefCounting>true</MtouchUseRefCounting>
<MtouchI18n>
</MtouchI18n>
<OptimizePNGs>false</OptimizePNGs>
Expand Down
9 changes: 2 additions & 7 deletions FormsSample/FormsSample.iOS/FormsSample.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,13 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<MtouchArch>i386</MtouchArch>
<MtouchArch>x86_64</MtouchArch>
<MtouchLink>None</MtouchLink>
<MtouchDebug>True</MtouchDebug>
<MtouchSdkVersion />
<MtouchProfiling>False</MtouchProfiling>
<MtouchFastDev>False</MtouchFastDev>
<MtouchUseLlvm>False</MtouchUseLlvm>
<MtouchUseThumb>False</MtouchUseThumb>
<MtouchUseSGen>False</MtouchUseSGen>
<MtouchUseRefCounting>False</MtouchUseRefCounting>
<OptimizePNGs>True</OptimizePNGs>
<MtouchFloat32>False</MtouchFloat32>
<MtouchI18n />
Expand All @@ -47,14 +44,11 @@
<MtouchLink>None</MtouchLink>
<MtouchArch>i386</MtouchArch>
<ConsolePause>false</ConsolePause>
<MtouchSdkVersion />
<MtouchDebug>False</MtouchDebug>
<MtouchProfiling>False</MtouchProfiling>
<MtouchFastDev>False</MtouchFastDev>
<MtouchUseLlvm>False</MtouchUseLlvm>
<MtouchUseThumb>False</MtouchUseThumb>
<MtouchUseSGen>False</MtouchUseSGen>
<MtouchUseRefCounting>False</MtouchUseRefCounting>
<OptimizePNGs>True</OptimizePNGs>
<MtouchFloat32>False</MtouchFloat32>
<MtouchI18n />
Expand Down Expand Up @@ -126,6 +120,7 @@
<ItemGroup>
<ProjectReference Include="..\FormsSample\FormsSample.csproj">
<Name>FormsSample</Name>
<Project>{8DD49470-0958-42D9-841F-F15589DC9F99}</Project>
</ProjectReference>
</ItemGroup>
<ItemGroup>
Expand Down
11 changes: 11 additions & 0 deletions FormsSample/FormsSample.userprefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Properties StartupConfiguration="{0E081AC0-969F-4724-A9FD-B76C2E8A55E8}|Default">
<MonoDevelop.Ide.Workbench />
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|iPhoneSimulator" />
<MonoDevelop.Ide.ItemProperties.FormsSample.iOS PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneSimulatorTarget.A8DB8ED8-C845-4B8E-9643-5310EFAF35C4" />
<MonoDevelop.Ide.DebuggingService.Breakpoints>
<BreakpointStore />
</MonoDevelop.Ide.DebuggingService.Breakpoints>
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
<MonoDevelop.Ide.ItemProperties.FormsSample.Droid PreferredExecutionTarget="Android.Android_Accelerated_Nougat" />
<MultiItemStartupConfigurations />
</Properties>

0 comments on commit a21c9f0

Please sign in to comment.