<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>cap&#039;n webb &#187; Titanium</title>
	<atom:link href="http://blog.dataich.com/tag/titanium/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dataich.com</link>
	<description>almost all things about it</description>
	<lastBuildDate>Thu, 12 Jan 2012 03:38:00 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>ただTitaniumチュートリアルをやってみただけだがエラーが出たので、ここに書いた</title>
		<link>http://blog.dataich.com/2008/12/12/%e3%81%9f%e3%81%a0titanium%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%92%e3%82%84%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f%e3%81%a0%e3%81%91%e3%81%a0%e3%81%8c%e3%82%a8%e3%83%a9/</link>
		<comments>http://blog.dataich.com/2008/12/12/%e3%81%9f%e3%81%a0titanium%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%92%e3%82%84%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f%e3%81%a0%e3%81%91%e3%81%a0%e3%81%8c%e3%82%a8%e3%83%a9/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 19:05:13 +0000</pubDate>
		<dc:creator>dataich</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[RIA]]></category>
		<category><![CDATA[Titanium]]></category>

		<guid isPermaLink="false">http://dataich.s15.coreserver.jp/blog/2008/12/12/%e3%81%9f%e3%81%a0titanium%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%92%e3%82%84%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f%e3%81%a0%e3%81%91%e3%81%a0%e3%81%8c%e3%82%a8%e3%83%a9/</guid>
		<description><![CDATA[開発環境 Appcelerator SDKとTitanium SDKをインストール Appcelerator Product Downloads Appcelerator Titanium SDK Downloads チ [...]]]></description>
			<content:encoded><![CDATA[<h2>開発環境</h2>
<p>Appcelerator SDKとTitanium SDKをインストール<br />
<a class="wpGallery" href="http://appcelerator.org/download" target="_blank" onclick="pageTracker._trackPageview('/outgoing/appcelerator.org/download?referer=');">Appcelerator Product Downloads</a><br />
<a class="wpGallery" href="http://titaniumapp.com/download" target="_blank" onclick="pageTracker._trackPageview('/outgoing/titaniumapp.com/download?referer=');">Appcelerator Titanium SDK Downloads</a></p>
<h2>チュートリアってみる。</h2>
<p><a class="wpGallery" href="http://titaniumapp.com/documentation/starting-your-first-titanium-project" target="_blank" onclick="pageTracker._trackPageview('/outgoing/titaniumapp.com/documentation/starting-your-first-titanium-project?referer=');">Starting your first Titanium project</a><br />
上記を参考に進めてみた。</p>
<h4>プロジェクト生成</h4>
<p>Terminalから</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ app create:project . myproject titanium</pre></div></div>

<p>下記のように出力されればプロジェクト生成成功。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Using service titanium
Connecting to update server ...
Fetching release info from distribution server...
Your project was created <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>yourname<span style="color: #000000; font-weight: bold;">/</span>myproject
Appcelerator titanium project created ... Code strong<span style="color: #000000; font-weight: bold;">!</span></pre></div></div>

<p>ちなみにSDKのインストールに失敗したのか、最初はうまくいかなかった。<br />
再インストールしたらうまくいった。</p>
<h4>プロジェクト（アプリケーション）のパッケージング</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> myproject
$ app package:project osx <span style="color: #666666; font-style: italic;">#Windows向けの場合はwin32</span>
Create directory <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>yoshida<span style="color: #000000; font-weight: bold;">/</span>Work<span style="color: #000000; font-weight: bold;">/</span>temp<span style="color: #000000; font-weight: bold;">/</span>myproject<span style="color: #000000; font-weight: bold;">/</span>stage<span style="color: #7a0874; font-weight: bold;">&#93;</span>? <span style="color: #7a0874; font-weight: bold;">&#40;</span>Y<span style="color: #7a0874; font-weight: bold;">&#41;</span>es,<span style="color: #7a0874; font-weight: bold;">&#40;</span>N<span style="color: #7a0874; font-weight: bold;">&#41;</span>o,<span style="color: #7a0874; font-weight: bold;">&#40;</span>A<span style="color: #7a0874; font-weight: bold;">&#41;</span>ll <span style="color: #7a0874; font-weight: bold;">&#91;</span>Y<span style="color: #7a0874; font-weight: bold;">&#93;</span> Y
Connecting to update server ...
Fetching release info from distribution server...
<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> titanium:osx:         <span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> titanium:osx:         <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">|</span>
...
<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> titanium:osx:       <span style="color: #000000;">100</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">|</span>ooooooooooooooooooooooooooooooooooooooooooooooooooooo<span style="color: #000000; font-weight: bold;">|</span>   5.4MB 302.5KB<span style="color: #000000; font-weight: bold;">/</span>s ETA:  00:00:00
&nbsp;
Installed titanium:osx <span style="color: #000000;">0.1</span>
Packaging Titanium <span style="color: #000000; font-weight: bold;">for</span> target os: osx
Validating tiapp.xml ...
Looks good ... Let<span style="color: #ff0000;">'s packager up!
Your Titanium application is located in /Users/yoshida/Work/temp/myproject/stage</span></pre></div></div>

<p>これで/Users/yoshida/Work/temp/myproject/stageにmyproject.appとしてパッケージングされる。<br />
myproject.appを起動した。</p>
<p>なんかエラーが出るが、<br />
<a href="http://blog.dataich.com/wp-content/uploads/titanium_error.jpg" rel="lightbox[30]"><img class="alignnone size-full wp-image-169" title="titanium_error" src="http://blog.dataich.com/wp-content/uploads/titanium_error.jpg" alt="titanium_error" width="400" height="203" /></a><br />
無視してクリックするとウィンドウが表示された。<br />
<a href="http://blog.dataich.com/wp-content/uploads/titanium_sample.jpg" rel="lightbox[30]"><img class="alignnone size-full wp-image-170" title="titanium_sample" src="http://blog.dataich.com/wp-content/uploads/titanium_sample.jpg" alt="titanium_sample" width="400" height="270" /></a><br />
Javascript APIを使ったサンプルがコード付きで試せるので、いろいろと見てみよう。<br />
但し、上記エラーのせいか、ボタンクリック系のサンプルが動かない、、、</p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://blog.dataich.com/2008/12/12/%e3%81%9f%e3%81%a0titanium%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%92%e3%82%84%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f%e3%81%a0%e3%81%91%e3%81%a0%e3%81%8c%e3%82%a8%e3%83%a9/&via=dataich&text=ただTitaniumチュートリアルをやってみただけだがエラーが出たので、ここに書いた&related=:&lang=en&count=vertical" class="twitter-share-button" onclick="pageTracker._trackPageview('/outgoing/twitter.com/share?url=http_//blog.dataich.com/2008/12/12/_e3_81_9f_e3_81_a0titanium_e3_83_81_e3_83_a5_e3_83_bc_e3_83_88_e3_83_aa_e3_82_a2_e3_83_ab_e3_82_92_e3_82_84_e3_81_a3_e3_81_a6_e3_81_bf_e3_81_9f_e3_81_a0_e3_81_91_e3_81_a0_e3_81_8c_e3_82_a8_e3_83_a9/_via=dataich_text=_Titanium_related=_lang=en_count=vertical&amp;referer=');">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://blog.dataich.com/2008/12/12/%e3%81%9f%e3%81%a0titanium%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%92%e3%82%84%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f%e3%81%a0%e3%81%91%e3%81%a0%e3%81%8c%e3%82%a8%e3%83%a9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

