This commit is contained in:
7sharp9 2016-03-21 15:53:09 +00:00
Родитель 9124ddeae3
Коммит c008ce6347
13 изменённых файлов: 206 добавлений и 156 удалений

Просмотреть файл

@ -6,7 +6,7 @@
<ProjectTypeGuids>{A3F8F2AB-B479-4A4A-A458-A89E7DC349F1};{F2A71F9B-5D33-465A-A702-920D77279786}</ProjectTypeGuids>
<OutputType>Exe</OutputType>
<RootNamespace>CocoaApp</RootNamespace>
<AssemblyName>CocoaApp</AssemblyName>
<AssemblyName>cocoa_cs_test</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<TargetFrameworkIdentifier>Xamarin.Mac</TargetFrameworkIdentifier>
<MonoMacResourcePrefix>Resources</MonoMacResourcePrefix>

Просмотреть файл

@ -11,11 +11,11 @@
<application id="hnw-xV-0zn" sceneMemberID="viewController">
<menu key="mainMenu" title="Main Menu" systemMenu="main" id="AYu-sK-qS6">
<items>
<menuItem title="cocoa_test" id="1Xt-HY-uBw">
<menuItem title="cocoa_cs_test" id="1Xt-HY-uBw">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="cocoa_test" systemMenu="apple" id="uQy-DD-JDr">
<menu key="submenu" title="cocoa_cs_test" systemMenu="apple" id="uQy-DD-JDr">
<items>
<menuItem title="About cocoa_test" id="5kV-Vb-QxS">
<menuItem title="About cocoa_cs_test" id="5kV-Vb-QxS">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="orderFrontStandardAboutPanel:" target="Ady-hI-5gd" id="Exp-CZ-Vem"/>
@ -29,7 +29,7 @@
<menu key="submenu" title="Services" systemMenu="services" id="hz9-B4-Xy5"/>
</menuItem>
<menuItem isSeparatorItem="YES" id="4je-JR-u6R"/>
<menuItem title="Hide cocoa_test" keyEquivalent="h" id="Olw-nP-bQN">
<menuItem title="Hide cocoa_cs_test" keyEquivalent="h" id="Olw-nP-bQN">
<connections>
<action selector="hide:" target="Ady-hI-5gd" id="PnN-Uc-m68"/>
</connections>
@ -47,7 +47,7 @@
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="kCx-OE-vgT"/>
<menuItem title="Quit cocoa_test" keyEquivalent="q" id="4sb-4s-VLi">
<menuItem title="Quit cocoa_cs_test" keyEquivalent="q" id="4sb-4s-VLi">
<connections>
<action selector="terminate:" target="Ady-hI-5gd" id="Te7-pn-YzF"/>
</connections>
@ -506,22 +506,19 @@
<menuItem title="Paragraph" enabled="NO" id="ZvO-Gk-QUH">
<modifierMask key="keyEquivalentModifierMask"/>
</menuItem>
<menuItem id="YGs-j5-SAR">
<string key="title"> Default</string>
<menuItem title=" Default" id="YGs-j5-SAR">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="makeBaseWritingDirectionNatural:" target="Ady-hI-5gd" id="qtV-5e-UBP"/>
</connections>
</menuItem>
<menuItem id="Lbh-J2-qVU">
<string key="title"> Left to Right</string>
<menuItem title=" Left to Right" id="Lbh-J2-qVU">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="makeBaseWritingDirectionLeftToRight:" target="Ady-hI-5gd" id="S0X-9S-QSf"/>
</connections>
</menuItem>
<menuItem id="jFq-tB-4Kx">
<string key="title"> Right to Left</string>
<menuItem title=" Right to Left" id="jFq-tB-4Kx">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="makeBaseWritingDirectionRightToLeft:" target="Ady-hI-5gd" id="5fk-qB-AqJ"/>
@ -531,22 +528,19 @@
<menuItem title="Selection" enabled="NO" id="cqv-fj-IhA">
<modifierMask key="keyEquivalentModifierMask"/>
</menuItem>
<menuItem id="Nop-cj-93Q">
<string key="title"> Default</string>
<menuItem title=" Default" id="Nop-cj-93Q">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="makeTextWritingDirectionNatural:" target="Ady-hI-5gd" id="lPI-Se-ZHp"/>
</connections>
</menuItem>
<menuItem id="BgM-ve-c93">
<string key="title"> Left to Right</string>
<menuItem title=" Left to Right" id="BgM-ve-c93">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="makeTextWritingDirectionLeftToRight:" target="Ady-hI-5gd" id="caW-Bv-w94"/>
</connections>
</menuItem>
<menuItem id="RB4-Sm-HuC">
<string key="title"> Right to Left</string>
<menuItem title=" Right to Left" id="RB4-Sm-HuC">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="makeTextWritingDirectionRightToLeft:" target="Ady-hI-5gd" id="EXD-6r-ZUu"/>
@ -628,7 +622,7 @@
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Help" systemMenu="help" id="F2S-fz-NVQ">
<items>
<menuItem title="cocoa_test Help" keyEquivalent="?" id="FKE-Sm-Kum">
<menuItem title="cocoa_cs_test Help" keyEquivalent="?" id="FKE-Sm-Kum">
<connections>
<action selector="showHelp:" target="Ady-hI-5gd" id="y7X-2Q-9no"/>
</connections>
@ -642,7 +636,7 @@
<outlet property="delegate" destination="Voe-Tx-rLC" id="PrD-fu-P6m"/>
</connections>
</application>
<customObject id="Voe-Tx-rLC" customClass="AppDelegate" customModule="cocoa_test" customModuleProvider="target"/>
<customObject id="Voe-Tx-rLC" customClass="AppDelegate"/>
<customObject id="Ady-hI-5gd" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="75" y="0.0"/>
@ -668,34 +662,34 @@
<!--View Controller-->
<scene sceneID="hIz-AP-VOD">
<objects>
<viewController id="XfG-lQ-9wD" customClass="ViewController" customModule="cocoa_test" sceneMemberID="viewController">
<viewController id="XfG-lQ-9wD" customClass="ViewController" sceneMemberID="viewController">
<view key="view" id="m2S-Jp-Qdl">
<rect key="frame" x="0.0" y="0.0" width="480" height="270"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="gUI-iA-QN3">
<rect key="frame" x="194" y="253" width="93" height="17"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="This is my App" id="Mj7-9z-Qet">
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="iLO-pF-979">
<rect key="frame" x="236" y="183" width="37" height="17"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Label" id="34G-Eh-EWV">
<font key="font" metaFont="system"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="gbt-X3-z17">
<rect key="frame" x="179" y="118" width="122" height="32"/>
<buttonCell key="cell" type="push" title="Do not press!" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="nWw-QO-4ab">
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="CYB-u2-Pml">
<rect key="frame" x="220" y="89" width="81" height="32"/>
<buttonCell key="cell" type="push" title="Button" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="psC-8Z-mzu">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<connections>
<action selector="onButton:" target="XfG-lQ-9wD" id="6ls-Sw-tNs"/>
<action selector="onButton:" target="XfG-lQ-9wD" id="iXI-mo-ZXS"/>
</connections>
</button>
</subviews>
</view>
<connections>
<outlet property="myButton" destination="gbt-X3-z17" id="KrC-YE-wrD"/>
<outlet property="myLabel" destination="gUI-iA-QN3" id="QDg-cQ-xvK"/>
<outlet property="myButton" destination="CYB-u2-Pml" id="7qL-0b-qpE"/>
<outlet property="myLabel" destination="iLO-pF-979" id="BPp-P6-9WI"/>
</connections>
</viewController>
<customObject id="rPt-NT-nkU" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>

Просмотреть файл

@ -7,14 +7,17 @@ type Container = Xamarin.UIProvider
[<Register(Container.ViewControllerBase.CustomClass)>]
type myViewController(handle) =
inherit Container.ViewControllerBase(handle)
inherit Container.ViewControllerBase(handle)
override x.ViewDidLoad () =
base.ViewDidLoad ()
// Do any additional setup after loading the view.
//x.OnButton <- Some(fun _ -> x.View.Layer.BackgroundColor <- new CoreGraphics.CGColor("purple"))
let onButton button =
printfn "Button pressed"
override x.ViewDidLoad () =
base.ViewDidLoad ()
// Do any additional setup after loading the view.
x.OnButton <- Some(fun _ -> x.View.Window.BackgroundColor <- AppKit.NSColor.Red)
override x.RepresentedObject
// Update the view, if already loaded.
with get() = base.RepresentedObject
and set(v) = base.RepresentedObject <- v
override x.RepresentedObject
// Update the view, if already loaded.
with get() = base.RepresentedObject
and set(v) = base.RepresentedObject <- v

Просмотреть файл

@ -1,19 +1,17 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "unified", "unified", "{84C29D09-A71E-4B50-BD40-A679904BB3D9}"
EndProject
Project("{f2a71f9b-5d33-465a-a702-920d77279786}") = "SingleViewUniversal", "unified\SingleViewUniversal\SingleViewUniversal.fsproj", "{4A95C0B9-1453-47C0-B6A1-FEE6122BD11A}"
EndProject
Project("{f2a71f9b-5d33-465a-a702-920d77279786}") = "singleview_tvOS", "unified\singleview_tvOS\singleview_tvOS.fsproj", "{00BF2AD3-867C-4A12-8AE6-907D4F02380F}"
EndProject
Project("{f2a71f9b-5d33-465a-a702-920d77279786}") = "CocoaApp", "CocoaApp\CocoaApp.fsproj", "{7EF80A0C-9765-4E3B-A13B-0B1E77E9CCAA}"
EndProject
Project("{9344BDBB-3E7F-41FC-A0DD-8665D75EE146}") = "fsharp_masterdetail", "unified\MasterDetail\fsharp_masterdetail.fsproj", "{0FFAA8F7-6235-4096-9E89-4B2FFBD48B1F}"
Project("{9344BDBB-3E7F-41FC-A0DD-8665D75EE146}") = "WatchkitTest", "unified\WatchkitTest\WatchkitTest.fsproj", "{7CB94428-22F3-41BD-8F5F-8BBF831AEFE1}"
EndProject
Project("{9344BDBB-3E7F-41FC-A0DD-8665D75EE146}") = "fullTest", "unified\fullTest\fullTest.fsproj", "{5CE87E55-6637-4C6B-B693-C2B33914FFBD}"
Project("{f2a71f9b-5d33-465a-a702-920d77279786}") = "fullTest", "unified\fullTest\fullTest.fsproj", "{A202739B-6E4E-4772-A2B6-2E427643FF15}"
EndProject
Project("{9344BDBB-3E7F-41FC-A0DD-8665D75EE146}") = "WatchkitTest", "unified\WatchkitTest\WatchkitTest.fsproj", "{27B9311A-FAAC-4DFD-8128-9D55CD15E83F}"
Project("{f2a71f9b-5d33-465a-a702-920d77279786}") = "fsharp_masterdetail", "unified\MasterDetail\fsharp_masterdetail.fsproj", "{14BE2E7C-3220-4128-A8B2-45DCB985B844}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -75,60 +73,55 @@ Global
{7EF80A0C-9765-4E3B-A13B-0B1E77E9CCAA}.Ad-Hoc|iPhone.Build.0 = Release|iPhone
{7EF80A0C-9765-4E3B-A13B-0B1E77E9CCAA}.AppStore|iPhone.ActiveCfg = Release|iPhone
{7EF80A0C-9765-4E3B-A13B-0B1E77E9CCAA}.AppStore|iPhone.Build.0 = Release|iPhone
{0FFAA8F7-6235-4096-9E89-4B2FFBD48B1F}.Debug|x86.ActiveCfg = Debug|iPhoneSimulator
{0FFAA8F7-6235-4096-9E89-4B2FFBD48B1F}.Debug|x86.Build.0 = Debug|iPhoneSimulator
{0FFAA8F7-6235-4096-9E89-4B2FFBD48B1F}.Release|x86.ActiveCfg = Debug|iPhoneSimulator
{0FFAA8F7-6235-4096-9E89-4B2FFBD48B1F}.Release|x86.Build.0 = Debug|iPhoneSimulator
{0FFAA8F7-6235-4096-9E89-4B2FFBD48B1F}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{0FFAA8F7-6235-4096-9E89-4B2FFBD48B1F}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{0FFAA8F7-6235-4096-9E89-4B2FFBD48B1F}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{0FFAA8F7-6235-4096-9E89-4B2FFBD48B1F}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{0FFAA8F7-6235-4096-9E89-4B2FFBD48B1F}.Debug|iPhone.ActiveCfg = Debug|iPhone
{0FFAA8F7-6235-4096-9E89-4B2FFBD48B1F}.Debug|iPhone.Build.0 = Debug|iPhone
{0FFAA8F7-6235-4096-9E89-4B2FFBD48B1F}.Release|iPhone.ActiveCfg = Release|iPhone
{0FFAA8F7-6235-4096-9E89-4B2FFBD48B1F}.Release|iPhone.Build.0 = Release|iPhone
{0FFAA8F7-6235-4096-9E89-4B2FFBD48B1F}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
{0FFAA8F7-6235-4096-9E89-4B2FFBD48B1F}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
{0FFAA8F7-6235-4096-9E89-4B2FFBD48B1F}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
{0FFAA8F7-6235-4096-9E89-4B2FFBD48B1F}.AppStore|iPhone.Build.0 = AppStore|iPhone
{5CE87E55-6637-4C6B-B693-C2B33914FFBD}.Debug|x86.ActiveCfg = Debug|iPhoneSimulator
{5CE87E55-6637-4C6B-B693-C2B33914FFBD}.Debug|x86.Build.0 = Debug|iPhoneSimulator
{5CE87E55-6637-4C6B-B693-C2B33914FFBD}.Release|x86.ActiveCfg = Debug|iPhoneSimulator
{5CE87E55-6637-4C6B-B693-C2B33914FFBD}.Release|x86.Build.0 = Debug|iPhoneSimulator
{5CE87E55-6637-4C6B-B693-C2B33914FFBD}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{5CE87E55-6637-4C6B-B693-C2B33914FFBD}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{5CE87E55-6637-4C6B-B693-C2B33914FFBD}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{5CE87E55-6637-4C6B-B693-C2B33914FFBD}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{5CE87E55-6637-4C6B-B693-C2B33914FFBD}.Debug|iPhone.ActiveCfg = Debug|iPhone
{5CE87E55-6637-4C6B-B693-C2B33914FFBD}.Debug|iPhone.Build.0 = Debug|iPhone
{5CE87E55-6637-4C6B-B693-C2B33914FFBD}.Release|iPhone.ActiveCfg = Release|iPhone
{5CE87E55-6637-4C6B-B693-C2B33914FFBD}.Release|iPhone.Build.0 = Release|iPhone
{5CE87E55-6637-4C6B-B693-C2B33914FFBD}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
{5CE87E55-6637-4C6B-B693-C2B33914FFBD}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
{5CE87E55-6637-4C6B-B693-C2B33914FFBD}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
{5CE87E55-6637-4C6B-B693-C2B33914FFBD}.AppStore|iPhone.Build.0 = AppStore|iPhone
{27B9311A-FAAC-4DFD-8128-9D55CD15E83F}.Debug|x86.ActiveCfg = Debug|iPhoneSimulator
{27B9311A-FAAC-4DFD-8128-9D55CD15E83F}.Debug|x86.Build.0 = Debug|iPhoneSimulator
{27B9311A-FAAC-4DFD-8128-9D55CD15E83F}.Release|x86.ActiveCfg = Debug|iPhoneSimulator
{27B9311A-FAAC-4DFD-8128-9D55CD15E83F}.Release|x86.Build.0 = Debug|iPhoneSimulator
{27B9311A-FAAC-4DFD-8128-9D55CD15E83F}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{27B9311A-FAAC-4DFD-8128-9D55CD15E83F}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{27B9311A-FAAC-4DFD-8128-9D55CD15E83F}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{27B9311A-FAAC-4DFD-8128-9D55CD15E83F}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{27B9311A-FAAC-4DFD-8128-9D55CD15E83F}.Debug|iPhone.ActiveCfg = Debug|iPhone
{27B9311A-FAAC-4DFD-8128-9D55CD15E83F}.Debug|iPhone.Build.0 = Debug|iPhone
{27B9311A-FAAC-4DFD-8128-9D55CD15E83F}.Release|iPhone.ActiveCfg = Release|iPhone
{27B9311A-FAAC-4DFD-8128-9D55CD15E83F}.Release|iPhone.Build.0 = Release|iPhone
{27B9311A-FAAC-4DFD-8128-9D55CD15E83F}.Ad-Hoc|iPhone.ActiveCfg = Release|iPhone
{27B9311A-FAAC-4DFD-8128-9D55CD15E83F}.Ad-Hoc|iPhone.Build.0 = Release|iPhone
{27B9311A-FAAC-4DFD-8128-9D55CD15E83F}.AppStore|iPhone.ActiveCfg = Release|iPhone
{27B9311A-FAAC-4DFD-8128-9D55CD15E83F}.AppStore|iPhone.Build.0 = Release|iPhone
{7CB94428-22F3-41BD-8F5F-8BBF831AEFE1}.Debug|x86.ActiveCfg = Debug|iPhoneSimulator
{7CB94428-22F3-41BD-8F5F-8BBF831AEFE1}.Debug|x86.Build.0 = Debug|iPhoneSimulator
{7CB94428-22F3-41BD-8F5F-8BBF831AEFE1}.Release|x86.ActiveCfg = Debug|iPhoneSimulator
{7CB94428-22F3-41BD-8F5F-8BBF831AEFE1}.Release|x86.Build.0 = Debug|iPhoneSimulator
{7CB94428-22F3-41BD-8F5F-8BBF831AEFE1}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{7CB94428-22F3-41BD-8F5F-8BBF831AEFE1}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{7CB94428-22F3-41BD-8F5F-8BBF831AEFE1}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{7CB94428-22F3-41BD-8F5F-8BBF831AEFE1}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{7CB94428-22F3-41BD-8F5F-8BBF831AEFE1}.Debug|iPhone.ActiveCfg = Debug|iPhone
{7CB94428-22F3-41BD-8F5F-8BBF831AEFE1}.Debug|iPhone.Build.0 = Debug|iPhone
{7CB94428-22F3-41BD-8F5F-8BBF831AEFE1}.Release|iPhone.ActiveCfg = Release|iPhone
{7CB94428-22F3-41BD-8F5F-8BBF831AEFE1}.Release|iPhone.Build.0 = Release|iPhone
{7CB94428-22F3-41BD-8F5F-8BBF831AEFE1}.Ad-Hoc|iPhone.ActiveCfg = Release|iPhone
{7CB94428-22F3-41BD-8F5F-8BBF831AEFE1}.Ad-Hoc|iPhone.Build.0 = Release|iPhone
{7CB94428-22F3-41BD-8F5F-8BBF831AEFE1}.AppStore|iPhone.ActiveCfg = Release|iPhone
{7CB94428-22F3-41BD-8F5F-8BBF831AEFE1}.AppStore|iPhone.Build.0 = Release|iPhone
{A202739B-6E4E-4772-A2B6-2E427643FF15}.Debug|x86.ActiveCfg = Debug|iPhoneSimulator
{A202739B-6E4E-4772-A2B6-2E427643FF15}.Debug|x86.Build.0 = Debug|iPhoneSimulator
{A202739B-6E4E-4772-A2B6-2E427643FF15}.Release|x86.ActiveCfg = Debug|iPhoneSimulator
{A202739B-6E4E-4772-A2B6-2E427643FF15}.Release|x86.Build.0 = Debug|iPhoneSimulator
{A202739B-6E4E-4772-A2B6-2E427643FF15}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{A202739B-6E4E-4772-A2B6-2E427643FF15}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{A202739B-6E4E-4772-A2B6-2E427643FF15}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{A202739B-6E4E-4772-A2B6-2E427643FF15}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{A202739B-6E4E-4772-A2B6-2E427643FF15}.Debug|iPhone.ActiveCfg = Debug|iPhone
{A202739B-6E4E-4772-A2B6-2E427643FF15}.Debug|iPhone.Build.0 = Debug|iPhone
{A202739B-6E4E-4772-A2B6-2E427643FF15}.Release|iPhone.ActiveCfg = Release|iPhone
{A202739B-6E4E-4772-A2B6-2E427643FF15}.Release|iPhone.Build.0 = Release|iPhone
{A202739B-6E4E-4772-A2B6-2E427643FF15}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
{A202739B-6E4E-4772-A2B6-2E427643FF15}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
{A202739B-6E4E-4772-A2B6-2E427643FF15}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
{A202739B-6E4E-4772-A2B6-2E427643FF15}.AppStore|iPhone.Build.0 = AppStore|iPhone
{14BE2E7C-3220-4128-A8B2-45DCB985B844}.Debug|x86.ActiveCfg = Debug|iPhoneSimulator
{14BE2E7C-3220-4128-A8B2-45DCB985B844}.Debug|x86.Build.0 = Debug|iPhoneSimulator
{14BE2E7C-3220-4128-A8B2-45DCB985B844}.Release|x86.ActiveCfg = Debug|iPhoneSimulator
{14BE2E7C-3220-4128-A8B2-45DCB985B844}.Release|x86.Build.0 = Debug|iPhoneSimulator
{14BE2E7C-3220-4128-A8B2-45DCB985B844}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{14BE2E7C-3220-4128-A8B2-45DCB985B844}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{14BE2E7C-3220-4128-A8B2-45DCB985B844}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{14BE2E7C-3220-4128-A8B2-45DCB985B844}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{14BE2E7C-3220-4128-A8B2-45DCB985B844}.Debug|iPhone.ActiveCfg = Debug|iPhone
{14BE2E7C-3220-4128-A8B2-45DCB985B844}.Debug|iPhone.Build.0 = Debug|iPhone
{14BE2E7C-3220-4128-A8B2-45DCB985B844}.Release|iPhone.ActiveCfg = Release|iPhone
{14BE2E7C-3220-4128-A8B2-45DCB985B844}.Release|iPhone.Build.0 = Release|iPhone
{14BE2E7C-3220-4128-A8B2-45DCB985B844}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
{14BE2E7C-3220-4128-A8B2-45DCB985B844}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
{14BE2E7C-3220-4128-A8B2-45DCB985B844}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
{14BE2E7C-3220-4128-A8B2-45DCB985B844}.AppStore|iPhone.Build.0 = AppStore|iPhone
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{4A95C0B9-1453-47C0-B6A1-FEE6122BD11A} = {84C29D09-A71E-4B50-BD40-A679904BB3D9}
{00BF2AD3-867C-4A12-8AE6-907D4F02380F} = {84C29D09-A71E-4B50-BD40-A679904BB3D9}
{0FFAA8F7-6235-4096-9E89-4B2FFBD48B1F} = {84C29D09-A71E-4B50-BD40-A679904BB3D9}
{5CE87E55-6637-4C6B-B693-C2B33914FFBD} = {84C29D09-A71E-4B50-BD40-A679904BB3D9}
{27B9311A-FAAC-4DFD-8128-9D55CD15E83F} = {84C29D09-A71E-4B50-BD40-A679904BB3D9}
EndGlobalSection
EndGlobal

Просмотреть файл

@ -7,7 +7,7 @@
<integer>1</integer>
</array>
<key>MinimumOSVersion</key>
<string>8.0</string>
<string>9.2</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>CFBundleShortVersionString</key>
@ -18,5 +18,9 @@
<string>com.your-company.fsharp_masterdetail</string>
<key>CFBundleDisplayName</key>
<string>fsharp_masterdetail</string>
<key>CFBundleName</key>
<string>fsharp_masterdetail</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
</dict>
</plist>

Просмотреть файл

@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document
type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version="3.0"
toolsVersion="9532"
systemVersion="15D21"
targetRuntime="iOS.CocoaTouch"
propertyAccessControl="none"
useAutolayout="YES"
launchScreen="YES"
useTraitCollections="YES"
initialViewController="01J-lp-oVM">
<dependencies>
<deployment
identifier="iOS" />
<plugIn
identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version="9530" />
</dependencies>
<scenes>
<!--View Controller-->
<scene
sceneID="EHf-IW-A2E">
<objects>
<viewController
id="01J-lp-oVM"
sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide
type="top"
id="Llm-lL-Icb" />
<viewControllerLayoutGuide
type="bottom"
id="xb3-aO-Qok" />
</layoutGuides>
<view
key="view"
contentMode="scaleToFill"
id="Ze5-6b-2t3">
<rect
key="frame"
x="0.0"
y="0.0"
width="600"
height="600" />
<autoresizingMask
key="autoresizingMask"
widthSizable="YES"
heightSizable="YES" />
<color
key="backgroundColor"
white="1"
alpha="1"
colorSpace="custom"
customColorSpace="calibratedWhite" />
</view>
</viewController>
<placeholder
placeholderIdentifier="IBFirstResponder"
id="iYj-Kq-Ea1"
userLabel="First Responder"
sceneMemberID="firstResponder" />
</objects>
<point
key="canvasLocation"
x="53"
y="375" />
</scene>
</scenes>
</document>

Просмотреть файл

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="4451" systemVersion="13A461" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="rS3-R9-Ivy">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6206.8" systemVersion="13A461" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="rS3-R9-Ivy" useTraitCollections="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3676"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7026.1"/>
</dependencies>
<scenes>
<!--Navigation Controller-->
@ -10,6 +10,7 @@
<navigationController id="rS3-R9-Ivy" sceneMemberID="viewController">
<navigationBar key="navigationBar" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" id="yXu-0R-QUA">
<autoresizingMask key="autoresizingMask"/>
<rect key="frame" x="0.0" y="20" width="600" height="44"/>
</navigationBar>
<connections>
<segue destination="pGg-6v-bdr" kind="relationship" relationship="rootViewController" id="RxB-wf-QIq"/>
@ -24,19 +25,19 @@
<objects>
<tableViewController title="Master" id="pGg-6v-bdr" customClass="MasterViewController" sceneMemberID="viewController">
<tableView key="view" opaque="NO" clipsSubviews="YES" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" id="mLL-gJ-YKr">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<prototypes>
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" accessoryType="disclosureIndicator" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="Cell" textLabel="2pz-XF-uhl" style="IBUITableViewCellStyleDefault" id="m0d-ak-lc9">
<rect key="frame" x="0.0" y="86" width="320" height="44"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" accessoryType="disclosureIndicator" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="Cell" textLabel="2pz-XF-uhl" style="IBUITableViewCellStyleDefault" id="m0d-ak-lc9" rowHeight="44">
<rect key="frame" x="0.0" y="22" width="600" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
<rect key="frame" x="0.0" y="0.0" width="287" height="43"/>
<rect key="frame" x="0.0" y="0.0" width="562" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" text="Title" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="2pz-XF-uhl">
<rect key="frame" x="15" y="0.0" width="270" height="43"/>
<rect key="frame" x="20" y="0.0" width="542" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="20"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
@ -47,7 +48,7 @@
</view>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<connections>
<segue destination="Ah7-4n-0Wa" kind="push" identifier="showDetail" id="jUr-3t-vfg"/>
<segue destination="Ah7-4n-0Wa" kind="show" identifier="showDetail" id="jUr-3t-vfg"/>
</connections>
</tableViewCell>
</prototypes>
@ -61,18 +62,22 @@
</tableViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="6Cn-md-YlS" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="459" y="64"/>
<point key="canvasLocation" x="632" y="63"/>
</scene>
<!--class Prefix:identifier Detail View Controller - Detail-->
<scene sceneID="Cn3-H9-jdl">
<objects>
<viewController title="Detail" id="Ah7-4n-0Wa" customClass="DetailViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="5"/>
<viewControllerLayoutGuide type="bottom" id="6"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="MMQ-IT-qOo">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<label clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" text="Detail view content goes here" textAlignment="center" lineBreakMode="tailTruncation" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="Lei-5M-9Gs">
<rect key="frame" x="20" y="276" width="280" height="17"/>
<rect key="frame" x="20" y="291.5" width="560" height="17"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<fontDescription key="fontDescription" type="system" size="system"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
@ -93,12 +98,7 @@
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="lrm-kH-fPn" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="902" y="64"/>
<point key="canvasLocation" x="1271" y="60"/>
</scene>
</scenes>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
<simulatedOrientationMetrics key="orientation"/>
<simulatedScreenMetrics key="destination" type="retina4"/>
</simulatedMetricsContainer>
</document>

Просмотреть файл

@ -3,7 +3,7 @@
open System
open UIKit
open Foundation
open Xamarin.iOSProviders
open Xamarin
//view controllers are generated from the type provider and embedded into the assembly here
type Container = UIProvider
@ -39,15 +39,7 @@ type DataSource (controller:UITableViewController) =
| UITableViewCellEditingStyle.Insert -> ()
// Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view.
| _ -> ()
// Override to support rearranging the table view.
// override x.MoveRow (tableView, sourceIndexPath, destinationIndexPath) = ()
// Override to support conditional rearranging of the table view.
// override x.CanMoveRow (tableView, indexPath) =
// // Return false if you do not want the item to be re-orderable.
// true
[<Register (Container.DetailViewControllerBase.CustomClass)>]
type DetailViewController (handle) =
inherit Container.DetailViewControllerBase (handle)
@ -62,7 +54,8 @@ type DetailViewController (handle) =
member x.ConfigureView () =
// Update the user interface for the detail item
if x.IsViewLoaded && detailItem <> null then
x.DetailDescriptionLabel.Text <- detailItem.ToString ()
x.detailDescriptionLabel.Text <- detailItem.ToString ()
override x.DidReceiveMemoryWarning () =
// Releases the view if it doesn't have a superview.

Просмотреть файл

@ -18,7 +18,7 @@
<ErrorReport>prompt</ErrorReport>
<Tailcalls>false</Tailcalls>
<ConsolePause>false</ConsolePause>
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
<CodesignEntitlements></CodesignEntitlements>
<PlatformTarget></PlatformTarget>
<MtouchDebug>true</MtouchDebug>
<MtouchLink>None</MtouchLink>
@ -101,10 +101,10 @@
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="Xamarin.iOSProviders">
<HintPath>..\..\..\src\Xamarin.iOSProviders\bin\Debug\Xamarin.iOSProviders.dll</HintPath>
</Reference>
<Reference Include="Xamarin.iOS" />
<Reference Include="Xamarin.UIProvider.iOSRuntime">
<HintPath>..\..\..\src\Build\Debug\Xamarin.UIProvider.iOSRuntime.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Resources\" />
@ -120,5 +120,6 @@
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.FSharp.targets" />
<ItemGroup>
<InterfaceDefinition Include="MainStoryboard.storyboard" />
<InterfaceDefinition Include="LaunchScreen.storyboard" />
</ItemGroup>
</Project>

Просмотреть файл

@ -9,7 +9,7 @@ type VCContainer = Xamarin.UIProvider
[<Register (VCContainer.SingleViewUniversalViewControllerBase.CustomClass) >]
type MyViewController (handle) =
inherit VCContainer.SingleViewUniversalViewControllerBase (handle)
inherit VCContainer.SingleViewUniversalViewControllerBase (handle)
override x.DidReceiveMemoryWarning () =
// Releases the view if it doesn't have a superview.

Просмотреть файл

@ -18,13 +18,11 @@
<ErrorReport>prompt</ErrorReport>
<Tailcalls>false</Tailcalls>
<ConsolePause>false</ConsolePause>
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
<PlatformTarget>
</PlatformTarget>
<CodesignEntitlements></CodesignEntitlements>
<PlatformTarget></PlatformTarget>
<MtouchDebug>true</MtouchDebug>
<MtouchLink>None</MtouchLink>
<MtouchI18n>
</MtouchI18n>
<MtouchI18n></MtouchI18n>
<MtouchArch>i386</MtouchArch>
<CodesignKey>iPhone Developer</CodesignKey>
</PropertyGroup>
@ -35,8 +33,7 @@
<OutputPath>bin\iPhoneSimulator\Release</OutputPath>
<DefineConstants>__MOBILE__;__IOS__</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<PlatformTarget>
</PlatformTarget>
<PlatformTarget></PlatformTarget>
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
<ConsolePause>false</ConsolePause>
<Tailcalls>true</Tailcalls>
@ -51,12 +48,10 @@
<Tailcalls>false</Tailcalls>
<ConsolePause>false</ConsolePause>
<MtouchDebug>true</MtouchDebug>
<PlatformTarget>
</PlatformTarget>
<PlatformTarget></PlatformTarget>
<CodesignKey>iPhone Developer</CodesignKey>
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
<IpaPackageName>
</IpaPackageName>
<IpaPackageName></IpaPackageName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
<DebugSymbols>true</DebugSymbols>
@ -65,8 +60,7 @@
<OutputPath>bin\iPhone\Release</OutputPath>
<DefineConstants>__MOBILE__;__IOS__</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<PlatformTarget>
</PlatformTarget>
<PlatformTarget></PlatformTarget>
<CodesignKey>iPhone Developer</CodesignKey>
<ConsolePause>false</ConsolePause>
<Tailcalls>true</Tailcalls>
@ -82,8 +76,7 @@
<Tailcalls>true</Tailcalls>
<ConsolePause>false</ConsolePause>
<CodesignKey>iPhone Distribution</CodesignKey>
<PlatformTarget>
</PlatformTarget>
<PlatformTarget></PlatformTarget>
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
<CodesignProvision>Automatic:AdHoc</CodesignProvision>
<BuildIpa>true</BuildIpa>
@ -98,8 +91,7 @@
<Tailcalls>true</Tailcalls>
<ConsolePause>false</ConsolePause>
<CodesignKey>iPhone Distribution</CodesignKey>
<PlatformTarget>
</PlatformTarget>
<PlatformTarget></PlatformTarget>
<CodesignProvision>Automatic:AppStore</CodesignProvision>
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
</PropertyGroup>
@ -107,10 +99,10 @@
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="Xamarin.iOSProviders">
<HintPath>..\..\..\src\Xamarin.iOSProviders\bin\Debug\Xamarin.iOSProviders.dll</HintPath>
</Reference>
<Reference Include="Xamarin.iOS" />
<Reference Include="Xamarin.UIProvider.iOSRuntime">
<HintPath>..\..\..\src\Build\Debug\Xamarin.UIProvider.iOSRuntime.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Resources\" />

Просмотреть файл

@ -3,7 +3,7 @@
open System
open UIKit
open Foundation
open Xamarin.iOSProviders
open Xamarin
//view controller is generated from the type provider and embedded into the assembly here
type VCContainer = UIProvider
@ -15,10 +15,10 @@ type MyViewController (handle) =
//Overrides are implemented on the derived type
override x.ViewDidLoad() =
//Access to the outlets are available
x.MyButton.TouchDown.Add (fun _ -> x.View.BackgroundColor <- UIColor.Purple)
x.myButton.TouchDown.Add (fun _ -> x.View.BackgroundColor <- UIColor.Purple)
//Access to actions are available
x.Mytouchup <- fun _ -> x.View.BackgroundColor <- UIColor.Yellow
x.Mytouchup <- Some(fun _ -> x.View.BackgroundColor <- UIColor.Yellow)
override x.ShouldAutorotateToInterfaceOrientation (orientation) =
orientation <> UIInterfaceOrientation.PortraitUpsideDown

Просмотреть файл

@ -6,7 +6,7 @@ open UIKit
type container = Xamarin.UIProvider
[<Register(container.myViewControllerBase.CustomClass)>]
[<Register(container.myViewControllerBase.CustomClass)>]
type ViewController(handle : IntPtr) =
inherit container.myViewControllerBase(handle)