Quote:
Originally Posted by TUX2K
xib files are XML.
|
Thanks for taking the time.
Yes, it is XML. However, we cannot easily change it without IB.
I would like to have a place, where I can write <Switch /> and it simply works and creates a control with acceptable defaults set.
Add a switch to a View.XIB and see what you get. I have inserted it below. Full of references and IDs. Unmanagable.
Having a XML schema that we create on our own also saves a lot of time.
Writing <View Name="MyView" /> creates a new UIView and UIViewController complete with headers and implementation. No clicking in the IDE whatsoever.
Nested <StackPanel /> allow for flexible layout. All controls automatically positioned and sized. Here I use fragments of the MoSync project.
Navigation between views is also delivered without any extra work.
All the code for the UINavigationController is automatically created when you do a
<LoadView Name="MyView" />
Add a property Scrollable="YES" to a StackPanel and you get the functionality that you know from a UIScrollView.
Together we can do anything. I publish the XSL templates, which implement the code generation and we can improve it.
So, you are free to add new XML elements or attributes that lead to generation of obj-c code that you would otherwise need to write manually.
I will document the templates to make this easier.
The code that I have published is not complete. It is not ready. And most probably it contains a lot of bugs.
However: I am following a vision of simplicity that I cannot find in similar form in the SDK. I highly appreciate your feedback and support.
Best Regards,
Mario
============================
<object class="IBUISwitch" id="424573381">
<reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{170, 90}, {94, 27}}</string>
<reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramewor k</string>
<int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int>
<bool key="IBUIOn">YES</bool>
</object>