Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
commit 9936ecd19776be2a7e3df46bcf3535615d86de35
Author: Alan McGovern <alan.mcgovern@gmail.com>
Date: Wed Mar 14 11:21:37 2012 +0000
[IPhone] The 'iPhone View' and 'iPad View' xibs to the view outlet
We should connect to the view outlet by default from within the xib. This
allows users to create a new UIViewController subclass and a new view and
use it directly. If the xib does not hook into the view automatically, the
user must open the xib in xcode, create a view outlet, connect the xib to
it and then sync back to MonoDevelop. This is pretty unintuitive.
Fixes bug #3887.
diff --git a/MonoDevelop.IPhone/MonoDevelop.IPhone/templates-file/IPadViewXib.xft.xml b/MonoDevelop.IPhone/MonoDevelop.IPhone/templates-file/IPadViewXib.xft.xml
index d95b257..2b33837 100644
--- a/MonoDevelop.IPhone/MonoDevelop.IPhone/templates-file/IPadViewXib.xft.xml
+++ b/MonoDevelop.IPhone/MonoDevelop.IPhone/templates-file/IPadViewXib.xft.xml
@@ -67,7 +67,16 @@
</object>
</array>
<object class="IBObjectContainer" key="IBDocument.Objects">
- <array class="NSMutableArray" key="connectionRecords"/>
+ <array class="NSMutableArray" key="connectionRecords">
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">view</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="191373211"/>
+ </object>
+ <int key="connectionID">7</int>
+ </object>
+ </array>
<object class="IBMutableOrderedSet" key="objectRecords">
<array key="orderedObjects">
<object class="IBObjectRecord">
diff --git a/MonoDevelop.IPhone/MonoDevelop.IPhone/templates-file/IPhoneViewXib.xft.xml b/MonoDevelop.IPhone/MonoDevelop.IPhone/templates-file/IPhoneViewXib.xft.xml
index 8dbae0c..5f7f6f3 100644
--- a/MonoDevelop.IPhone/MonoDevelop.IPhone/templates-file/IPhoneViewXib.xft.xml
+++ b/MonoDevelop.IPhone/MonoDevelop.IPhone/templates-file/IPhoneViewXib.xft.xml
@@ -65,7 +65,16 @@
</object>
</array>
<object class="IBObjectContainer" key="IBDocument.Objects">
- <array class="NSMutableArray" key="connectionRecords"/>
+ <array class="NSMutableArray" key="connectionRecords">
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">view</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="191373211"/>
+ </object>
+ <int key="connectionID">7</int>
+ </object>
+ </array>
<object class="IBMutableOrderedSet" key="objectRecords">
<array key="orderedObjects">
<object class="IBObjectRecord">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.