Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-04-2011, 03:35 PM   #1 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 2
mario.muja is on a distinguished road
Default Would an XML based presentation foundation help you?

Dear Friends,
during the last years I have developed Windows applications using the MS Windows Presentation Foundation (WPF), that allows to describe user interfaces using XML files.

When I began to study the iPhone SDK, I had a very hard time with Interface Builder and I missed the possibility to declaratively describe my iPhone user interfaces in XML files.

Therefore, I started to write a code generator to convert XML user interface descriptions to Objective-C code.

I have now published my first results on SourceForge at Mario Muja / Documentation / Home

Examples can be found under Mario Muja / Documentation / Examples

What do you think about this approach?
Is an XML based iPhone presentation foundation useful?
Would you like to see improved releases?

I really appreciate your feedback.

Best Regards,
Mario Muja
mario.muja is offline   Reply With Quote
Old 01-05-2011, 02:22 AM   #2 (permalink)
- U haz disappoint -
 
Join Date: Jan 2010
Location: Belgium
Posts: 489
jNoxx is on a distinguished road
Send a message via MSN to jNoxx Send a message via Skype™ to jNoxx
Default

I definitly will check it out later man
Thanks if its of any use x)
jNoxx is offline   Reply With Quote
Old 01-05-2011, 02:58 AM   #3 (permalink)
Registered Member
 
Join Date: Oct 2009
Location: Amsterdam, The Netherlands
Posts: 782
TUX2K is on a distinguished road
Default

xib files are XML.
TUX2K is offline   Reply With Quote
Old 01-05-2011, 12:05 PM   #4 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 2
mario.muja is on a distinguished road
Default

Quote:
Originally Posted by TUX2K View Post
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>
mario.muja is offline   Reply With Quote
Old 01-05-2011, 01:20 PM   #5 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

maybe can usefull to create full dynamics gui from a server, but really not so common.
__________________
dany_dev is offline   Reply With Quote
Reply

Bookmarks

Tags
foundation, presentation, wpf, xml

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 362
7 members and 355 guests
blueorb, fredidf, iAppDeveloper, iGamesDev, mottdog, sacha1996, Touchmint
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:31 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0