<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for John Kalberer</title>
	<atom:link href="http://johnkalberer.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://johnkalberer.com</link>
	<description></description>
	<lastBuildDate>Thu, 17 May 2012 18:50:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>Comment on Appcelerator Mvc : Routing by John Kalberer</title>
		<link>http://johnkalberer.com/2011/09/13/appcelerator-mvc-routing/#comment-637</link>
		<dc:creator>John Kalberer</dc:creator>
		<pubDate>Thu, 17 May 2012 18:50:39 +0000</pubDate>
		<guid isPermaLink="false">http://johnkalberer.com/?p=117#comment-637</guid>
		<description>I never thought about doing something like this when I created the framework.  The best solution I can give you is to do it inside of the controller files.  Create subfolders under the views for each type.   When you create the view file you still follow the same pattern -- Do not create a IPhone/Android/Tablet object.  It still works like:

(function(v) {
    // Create the &#039;Home&#039; object if it doesn&#039;t already exist
    if(!v.Home) {
        v.Home = {};
    }
 
    /*
     * Render the default page
     */
    v.Home.Default = function(model) {
 
    };
}(Mvc.Views));

Use whatever conditional you have and load the views like this. Here is how you should reference the files in your controller file:

if(IPhone) {
    Ti.include(&quot;/views/IPhone/Home/Default.js&quot;);
} else if(Android) {
    Ti.include(&quot;/views/Android/Accounts/Default.js&quot;);
} else if(Tablet) {
    Ti.include(&quot;/views/Tablet/Accounts/Default.js&quot;);
}

John</description>
		<content:encoded><![CDATA[<p>I never thought about doing something like this when I created the framework.  The best solution I can give you is to do it inside of the controller files.  Create subfolders under the views for each type.   When you create the view file you still follow the same pattern &#8212; Do not create a IPhone/Android/Tablet object.  It still works like:</p>
<p>(function(v) {<br />
    // Create the &#8216;Home&#8217; object if it doesn&#8217;t already exist<br />
    if(!v.Home) {<br />
        v.Home = {};<br />
    }</p>
<p>    /*<br />
     * Render the default page<br />
     */<br />
    v.Home.Default = function(model) {</p>
<p>    };<br />
}(Mvc.Views));</p>
<p>Use whatever conditional you have and load the views like this. Here is how you should reference the files in your controller file:</p>
<p>if(IPhone) {<br />
    Ti.include(&#8220;/views/IPhone/Home/Default.js&#8221;);<br />
} else if(Android) {<br />
    Ti.include(&#8220;/views/Android/Accounts/Default.js&#8221;);<br />
} else if(Tablet) {<br />
    Ti.include(&#8220;/views/Tablet/Accounts/Default.js&#8221;);<br />
}</p>
<p>John</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Appcelerator Mvc : Routing by Abishek R Srikaanth</title>
		<link>http://johnkalberer.com/2011/09/13/appcelerator-mvc-routing/#comment-636</link>
		<dc:creator>Abishek R Srikaanth</dc:creator>
		<pubDate>Thu, 17 May 2012 18:20:04 +0000</pubDate>
		<guid isPermaLink="false">http://johnkalberer.com/?p=117#comment-636</guid>
		<description>How can we seperate the views for IPhone, Android, Tablet seperately? Should we do this at the app.js level or should it be at the view level?</description>
		<content:encoded><![CDATA[<p>How can we seperate the views for IPhone, Android, Tablet seperately? Should we do this at the app.js level or should it be at the view level?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MVC for Appcelerator by Great Clips Coupons- A Way to become Millionaire</title>
		<link>http://johnkalberer.com/2011/09/08/mvc-for-appcelerator/#comment-631</link>
		<dc:creator>Great Clips Coupons- A Way to become Millionaire</dc:creator>
		<pubDate>Mon, 14 May 2012 01:14:15 +0000</pubDate>
		<guid isPermaLink="false">http://johnkalberer.com/?p=49#comment-631</guid>
		<description>&lt;strong&gt;Pacers...&lt;/strong&gt;

[...]following are a few url links to webpages that we link to for the fact we believe they will be really worth checking out[...]...</description>
		<content:encoded><![CDATA[<p><strong>Pacers&#8230;</strong></p>
<p>[...]following are a few url links to webpages that we link to for the fact we believe they will be really worth checking out[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PushButton Engine Basics by Finding Great Clips Coupons Online</title>
		<link>http://johnkalberer.com/2011/02/16/pushbutton-engine-basics/#comment-630</link>
		<dc:creator>Finding Great Clips Coupons Online</dc:creator>
		<pubDate>Mon, 14 May 2012 00:53:26 +0000</pubDate>
		<guid isPermaLink="false">http://johnkalberer.com/?p=31#comment-630</guid>
		<description>&lt;strong&gt;booker t and the msgs...&lt;/strong&gt;

[...]listed below are several listings to online sites we link to because we feel they&#039;re definitely worth browsing[...]...</description>
		<content:encoded><![CDATA[<p><strong>booker t and the msgs&#8230;</strong></p>
<p>[...]listed below are several listings to online sites we link to because we feel they&#8217;re definitely worth browsing[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Appcelerator Mvc Example by Mickey A.</title>
		<link>http://johnkalberer.com/2011/09/29/appcelerator-mvc-example/#comment-617</link>
		<dc:creator>Mickey A.</dc:creator>
		<pubDate>Sun, 06 May 2012 03:32:22 +0000</pubDate>
		<guid isPermaLink="false">http://johnkalberer.com/?p=135#comment-617</guid>
		<description>Hi John, 

Thanks so much for writing this up. It is very great and nice of you :)

Mickey (Bangkok, Thailand)</description>
		<content:encoded><![CDATA[<p>Hi John, </p>
<p>Thanks so much for writing this up. It is very great and nice of you <img src='http://johnkalberer.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Mickey (Bangkok, Thailand)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Appcelerator Mvc Example by John Kalberer</title>
		<link>http://johnkalberer.com/2011/09/29/appcelerator-mvc-example/#comment-607</link>
		<dc:creator>John Kalberer</dc:creator>
		<pubDate>Tue, 01 May 2012 23:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://johnkalberer.com/?p=135#comment-607</guid>
		<description>When you navigate from the event:

this.navigate(&quot;action&quot;, { view: view});

That will get passed to the controller so you can access the window via that property.  If you need access to the window itself, change the Mvc.render function that gets set so that it sets the model being passed in the route data or adds the property to the &#039;ui&#039; parameter.</description>
		<content:encoded><![CDATA[<p>When you navigate from the event:</p>
<p>this.navigate(&#8220;action&#8221;, { view: view});</p>
<p>That will get passed to the controller so you can access the window via that property.  If you need access to the window itself, change the Mvc.render function that gets set so that it sets the model being passed in the route data or adds the property to the &#8216;ui&#8217; parameter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Appcelerator Mvc Example by Tim</title>
		<link>http://johnkalberer.com/2011/09/29/appcelerator-mvc-example/#comment-606</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Tue, 01 May 2012 23:06:25 +0000</pubDate>
		<guid isPermaLink="false">http://johnkalberer.com/?p=135#comment-606</guid>
		<description>Any idea how to do this? I&#039;m still stumped!</description>
		<content:encoded><![CDATA[<p>Any idea how to do this? I&#8217;m still stumped!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Appcelerator Mvc Example by Camilo Martinez</title>
		<link>http://johnkalberer.com/2011/09/29/appcelerator-mvc-example/#comment-600</link>
		<dc:creator>Camilo Martinez</dc:creator>
		<pubDate>Thu, 12 Apr 2012 16:47:26 +0000</pubDate>
		<guid isPermaLink="false">http://johnkalberer.com/?p=135#comment-600</guid>
		<description>I&#039;m getting the same error...</description>
		<content:encoded><![CDATA[<p>I&#8217;m getting the same error&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Appcelerator Mvc Example by Tim</title>
		<link>http://johnkalberer.com/2011/09/29/appcelerator-mvc-example/#comment-544</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Mon, 19 Mar 2012 02:41:32 +0000</pubDate>
		<guid isPermaLink="false">http://johnkalberer.com/?p=135#comment-544</guid>
		<description>How would you access the window from the controller or view? For example if I needed to add a listener for window open...?

Thanks for your help, and great post by the way!</description>
		<content:encoded><![CDATA[<p>How would you access the window from the controller or view? For example if I needed to add a listener for window open&#8230;?</p>
<p>Thanks for your help, and great post by the way!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Appcelerator Mvc Example by Adam Jenkins</title>
		<link>http://johnkalberer.com/2011/09/29/appcelerator-mvc-example/#comment-521</link>
		<dc:creator>Adam Jenkins</dc:creator>
		<pubDate>Sat, 10 Mar 2012 22:33:59 +0000</pubDate>
		<guid isPermaLink="false">http://johnkalberer.com/?p=135#comment-521</guid>
		<description>I&#039;m currently just trying to get your example running and when the app loads I get greeted with an error.

Location: [24,34] models/Accounts.js
Message: Uncaught ReferenceError: AccountViewModel is not defined
Source: automapper.createMap(&quot;Account&quot;,AccountViewModel)

Running appcelerator 1.8.2</description>
		<content:encoded><![CDATA[<p>I&#8217;m currently just trying to get your example running and when the app loads I get greeted with an error.</p>
<p>Location: [24,34] models/Accounts.js<br />
Message: Uncaught ReferenceError: AccountViewModel is not defined<br />
Source: automapper.createMap(&#8220;Account&#8221;,AccountViewModel)</p>
<p>Running appcelerator 1.8.2</p>
]]></content:encoded>
	</item>
</channel>
</rss>

