<?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>Romly &#187; iPhone dev</title>
	<atom:link href="http://romly.com/archives/category/iphone-dev/feed" rel="self" type="application/rss+xml" />
	<link>http://romly.com</link>
	<description>Love Gadgets.</description>
	<lastBuildDate>Mon, 09 Jan 2012 15:01:11 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>iPad用時計アプリ、シンプルすぎるので却下</title>
		<link>http://romly.com/archives/2010/03/ipad_clock_apps_rejected.html</link>
		<comments>http://romly.com/archives/2010/03/ipad_clock_apps_rejected.html#comments</comments>
		<pubDate>Tue, 30 Mar 2010 14:15:22 +0000</pubDate>
		<dc:creator>Romly</dc:creator>
				<category><![CDATA[iPhone dev]]></category>
		<category><![CDATA[App Store]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[ryclock]]></category>

		<guid isPermaLink="false">http://romly.com/?p=672</guid>
		<description><![CDATA[とても腹がたってますけれども。 自分、rydigitalとryclockというiPad用の時計アプリを作ってアップロードしたんですけど、&#8221;Minimal User Functionality&#8220;とい &#8230; <a href="http://romly.com/archives/2010/03/ipad_clock_apps_rejected.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>とても腹がたってますけれども。</p>
<p>自分、rydigitalとryclockというiPad用の時計アプリを作ってアップロードしたんですけど、&#8221;<strong>Minimal User Functionality</strong>&#8220;ということで却下されました。まあ、要するに、機能が少なすぎるので却下ってことですかね。</p>
<p><img class="aligncenter size-full wp-image-679" title="ryclock_rydigital_ipad" src="http://romly.com/wordpress/wp-content/uploads/2010/03/ryclock_rydigital_ipad.png" alt="ryclock &amp; rydigital (simulated reception :-)" width="476" height="320" /><span id="more-672"></span></p>
<p>もうね、アホかと。機能の多さってお前が決めんの？機能って何？時計アプリが時計表示できるだけじゃダメなの？なんかメモ機能とかでもつけたらいいの？時計なのに？</p>
<p>もう怒り心頭過ぎて自分の言ってることが良くわかりません。</p>
<p>アプリ自体は、まあ時計を表示するアプリです。当然起動すればちゃんと時計が表示されます。それ以外の機能はありません。だって時計だから！！</p>
<p>ちょっと冷静になってみます。</p>
<p>そもそも、iPadをドックに立てかけた時に起動しておいたらかっこいいじゃん！と思って作りました。iPhone版が既にAppStoreにありますが、同じ理由で作りました。iPadなら大きいのでより家具っぽくて良いと思います。iPhone版をiPadで動かすこともできますが、iPhone用アプリをiPadで動かすには真ん中に小さく表示するか、拡大表示するかしかなく、それを切り替えるためのボタンが常に表示されてしまいます。それでは売りである見た目のシンプルさがなくなってしまいますし、美しくないので、iPad専用版として修正しました。</p>
<p>針の長さや秒針の動きもちゃんと考えて今のデザインになりました。日付が表示されなくて不便かもとかいろいろ考えたけど、やっぱり徹底的にシンプルにしたかったからこういった見た目に落ち着きました。もちろん、色についても黒字に白がいい、と思ってやってるので、ユーザーがカスタマイズできればそれはそれでいいでしょうが、やはり作者としてこの色がいいので固定です。<br />
機能にしても、設定ボタンなんて表示したくなかったし、何か他の操作があること自体が嫌だったので、起動するだけ、というのを大事にしたかったからこうなってます。</p>
<p>それを「機能がなさすぎ」と言われても……</p>
<p>だいたいiPadを見た目シンプルな時計として使えるようにするだけのアプリなんで、必要十分な機能は入ってます。横向きにすればちゃんと横向きになるし。ステータスバーも必要なら表示できるし、サイズとかも維持するし！</p>
<p>まあAppStoreにスパム的なアプリを置きたくないというのはわかりますよ。こんなスパムアプリ置けな……ってスパムじゃねーし。広告も入ってなければ有料でもないし。<br />
※ショバ代年間$99払ってるんだから多少は変なアプリでも置いてくれよという気持ちもあるんですが。</p>
<p>じゃあ他の場所に置こうにもAppStore以外のアプリサイトを作ることをAppleは許可していないし、たとえそれがあってもAppStore以外で公開すること自体が禁止だし。自分のホームページに置くことすらダメ。そんなことしてもインストールできないから意味ないですけどね。</p>
<p>ちなみに、&#8221;<strong>Minimal User Functionality</strong>&#8220;は割とよくある却下理由で、検索すれば他にも苦しんでるデベロッパーが見つかります。要らないかどうかはユーザーが決めることで、アップルじゃないと思うんだぁ。せめてアプリの発表ぐらいさせてくれたっていいじゃないかよぉ。<br />
<a href="http://www.crunchgear.com/2010/03/01/new-arbitrary-app-store-rejection-reason-minimum-user-functionality/" target="_blank">www.crunchgear.com/2010/03/01/new-arbitrary-app-store-rejection-reason-minimum-user-functionality/</a></p>
<p>はあ、相変わらずのアップル独裁政権はなんとかならないのかなぁ……　前よりひどくなってるもんなぁ。<br />
嫌いなら使わなきゃいい？ごもっともです。ソフトバンク、ドコモ、さらにauとAndroid携帯が日本でも充実してきて、携帯端末ならもうiPhoneに拘る必要はなくなりましたが、タブレットサイズとなるとiPadの代替はまだなくて。より魅力的なタブレットもいろいろ発表はされてるけど、発売はiPadより遅れてしまうんですよね。</p>
<p><a href="https://thejoojoo.com/" target="_blank">JooJoo</a>は魅力的だけど重いのと独自OSなのでちょっと開発とかで遊べなさそう。iPadを上回る高解像度で見た目も良しなんですけどね。</p>
<p><a href="http://shopap.lenovo.com/jp/Landing_pages/IdeaPad/S10-3" target="_blank">Lenovo ideapad S10-3t</a>はフルWindows7、キーボード付き、タブレットスタイルも可能ということでかなりヨサゲですが、1.5kg…… あと解像度が1024&#215;600は自炊PDFにはもう一声というところ。</p>
<p><a href="http://japanese.engadget.com/2009/03/02/kindle-3/" target="_blank">kindle 3</a>は本命ですが出る頃にはiPadがかなり普及してそう……</p>
<p>はあ……</p>
<p>あ、ちなみに、iPhone用のryclock, rydigital, rycylinderは無料なんでよかったらどうぞー。</p>
<div id="attachment_683" class="wp-caption aligncenter" style="width: 330px"><img class="size-full wp-image-683" title="rydigital" src="http://romly.com/wordpress/wp-content/uploads/2010/03/rydigital.jpg" alt="rydigital" width="320" height="480" /><p class="wp-caption-text">rydigital</p></div>
<p>ryclock<br />
<a href="http://itunes.apple.com/jp/app/ryclock/id334554784?mt=8" target="_blank">itunes.apple.com/jp/app/ryclock/id334554784?mt=8</a></p>
<p>rydigital<br />
<a href="http://itunes.apple.com/jp/app/rydigital/id335041000?mt=8" target="_blank">itunes.apple.com/jp/app/rydigital/id335041000?mt=8</a></p>
<p>rycylinder<br />
<a href="http://itunes.apple.com/jp/app/rycylinder/id344094983?mt=8" target="_blank">itunes.apple.com/jp/app/rycylinder/id344094983?mt=8</a></p>
]]></content:encoded>
			<wfw:commentRss>http://romly.com/archives/2010/03/ipad_clock_apps_rejected.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My clock apps for iPad are rejected: &#8220;Minimal User Functionality&#8221;.</title>
		<link>http://romly.com/archives/2010/03/minimum_user_functionality.html</link>
		<comments>http://romly.com/archives/2010/03/minimum_user_functionality.html#comments</comments>
		<pubDate>Mon, 29 Mar 2010 16:09:21 +0000</pubDate>
		<dc:creator>Romly</dc:creator>
				<category><![CDATA[iPhone dev]]></category>
		<category><![CDATA[App Store]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[ryclock]]></category>

		<guid isPermaLink="false">http://romly.com/?p=670</guid>
		<description><![CDATA[I am Japanese, not an English speaker. Just studying so please be patient with my English. I uploaded two free &#8230; <a href="http://romly.com/archives/2010/03/minimum_user_functionality.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span style="color: #999999;">I am Japanese, not an English speaker. Just studying so please be patient with my English.</span></p>
<div id="attachment_679" class="wp-caption aligncenter" style="width: 486px"><img class="size-full wp-image-679" title="ryclock_rydigital_ipad" src="http://romly.com/wordpress/wp-content/uploads/2010/03/ryclock_rydigital_ipad.png" alt="ryclock &amp; rydigital (simulated reception :-)" width="476" height="320" /><p class="wp-caption-text">ryclock &amp; rydigital (simulated reception <img src='http://romly.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p></div>
<p>I uploaded two free clock apps for the iPad. These apps simply shows clock and digital time.<br />
But these were rejected by iPad review team. The reason is &#8220;<strong>Minimal User Functionality</strong>&#8220;.</p>
<p><span id="more-670"></span></p>
<p>I google it, realized that other developers are suffering.<br />
<a href="http://www.crunchgear.com/2010/03/01/new-arbitrary-app-store-rejection-reason-minimum-user-functionality/" target="_blank">www.crunchgear.com/2010/03/01/new-arbitrary-app-store-rejection-reason-minimum-user-functionality/</a></p>
<p>By the post above link, the email body from review team is completely same but app name.</p>
<blockquote><p>Thank you for submitting rydigital for iPad and ryclock for iPad.</p>
<p>We have performed an initial review of your applications and determined that these applications contain minimal user functionality and will not be appropriate for the App Store.</p>
<p>If you would like to share it with friends and family, we recommend you review the Ad Hoc method on the Distribution tab of the iPhone Developer Portal for details on distributing these applications among a small group of people of your choosing or if you believe that you can add additional user functionality to rydigital for iPad and ryclock for iPad, we encourage you to do so and resubmit &#8230;&#8230;</p></blockquote>
<p>My apps are not spam!</p>
<p>For my apps &#8220;ryclock&#8221; and &#8220;rydigital&#8221;, simple is the key and I don&#8217;t want to add unnecessarily function neither display design. And, <strong>iPhone versions are approved already</strong>&#8230;</p>
<p>I considered design and functions of these apps very well. Length of needles, move of the second hand, numeric fonts&#8230; Doesn&#8217;t telling the date is inconvenience? Of course I knew but I want is a perfect simple looks. Maybe it&#8217;s better if a user can customize colors. But I, as author, thinks it should be a black and white so it is. I don&#8217;t want to show the ugly &#8220;Setting&#8221; button. I think it&#8217;s important &#8220;Just run the app&#8221;, nothing else you have to do.</p>
<p>Of course some of users doesn&#8217;t agree with this, I know. Just I think it&#8217;s not Apple&#8217;s job deciding an app is useful or not. Users can handle it.<br />
Ok, App Store is Apple area, then why we can&#8217;t create alternative? Apple disallows that. Apple allows nothing but playing in well-controled apple garden.</p>
<p>Go Google, Microsoft, other companies believing freedom!!<br />
Create awesome tablets overwhelms iPad, and destroy the Apple empire!!</p>
<p>By the way, iPhone version of ryclock, rydigital and rycilinder are available on the AppStore for free. Please try it.</p>
<div id="attachment_683" class="wp-caption aligncenter" style="width: 330px"><img class="size-full wp-image-683" title="rydigital" src="http://romly.com/wordpress/wp-content/uploads/2010/03/rydigital.jpg" alt="rydigital" width="320" height="480" /><p class="wp-caption-text">rydigital</p></div>
<p>ryclock<br />
<a href="http://itunes.apple.com/jp/app/ryclock/id334554784?mt=8" target="_blank">itunes.apple.com/jp/app/ryclock/id334554784?mt=8</a></p>
<p>rydigital<br />
<a href="http://itunes.apple.com/jp/app/rydigital/id335041000?mt=8" target="_blank">itunes.apple.com/jp/app/rydigital/id335041000?mt=8</a></p>
<p>rycylinder<br />
<a href="http://itunes.apple.com/jp/app/rycylinder/id344094983?mt=8" target="_blank">itunes.apple.com/jp/app/rycylinder/id344094983?mt=8</a></p>
]]></content:encoded>
			<wfw:commentRss>http://romly.com/archives/2010/03/minimum_user_functionality.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>iPad用アプリ開発中なう</title>
		<link>http://romly.com/archives/2010/02/developing_app_for_ipad_now.html</link>
		<comments>http://romly.com/archives/2010/02/developing_app_for_ipad_now.html#comments</comments>
		<pubDate>Thu, 04 Feb 2010 14:29:18 +0000</pubDate>
		<dc:creator>Romly</dc:creator>
				<category><![CDATA[iPhone dev]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://romly.com/?p=522</guid>
		<description><![CDATA[iPadはOSもiPhoneと同じということがわかり、結局本当にデカイだけのiPod touchということで一消費者としては少し悲しいですが、開発者としては今までのiPhoneと同じようにiPad用アプリも作れるので、早 &#8230; <a href="http://romly.com/archives/2010/02/developing_app_for_ipad_now.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>iPadはOSもiPhoneと同じということがわかり、結局本当にデカイだけのiPod touchということで一消費者としては少し悲しいですが、開発者としては今までのiPhoneと同じようにiPad用アプリも作れるので、早速iPad専用のアプリ作ってます。</p>
<p>発売日までに出来るかなー。時間ないなー。できないだろうなー。</p>
<p>っていうか<span id="more-522"></span>発売日までにはかなりのiPhone用アプリがiPadにも対応（２倍表示のことじゃなくて）してくるでしょうね。SDKはマイナーバージョンアップどまりで、画面のレイアウトとかは別にすればリビルドするだけでほぼiPad専用のアプリが出力できます。</p>
<p>むしろUIと操作方法をどうするかに開発側のセンスが出てくると思うので楽しみです。画面全体を触れるのに今まで通りの画面下部44pxのツールバーじゃ操作しづらい。大きい画面でのタッチを前提としたいろんなUIが出てくるんでしょうねーわくわく。</p>
<p>マルチタッチも、あまりいろいろ使ってしまうと操作方法が直感的にわからなくなっちゃうんですよね。<a href="http://www.apple.com/jp/ipad/app-store/" target="_blank">iPad用iWorks</a>も、いくつかの操作はいわれない限り気がつかなそうでした。でも慣れですね。アップルに買収される前のFingerWorks製テンキーパッドは右クリック、ドラッグなど非常に難解でチートシートがついているほどでしたが、ひと月もしないうちに驚くほど使いこなせてたし。ディスコンになるなら手放さなければよかった･ﾟ･(つД｀)･ﾟ･</p>
<p>とにかくiPad用アプリ急ぎで開発中なう。</p>
]]></content:encoded>
			<wfw:commentRss>http://romly.com/archives/2010/02/developing_app_for_ipad_now.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>知ってました？ Xcode 3.2での「選択範囲のみ」置換</title>
		<link>http://romly.com/archives/2009/11/xcode32_replace_in_selected_option.html</link>
		<comments>http://romly.com/archives/2009/11/xcode32_replace_in_selected_option.html#comments</comments>
		<pubDate>Mon, 02 Nov 2009 07:12:29 +0000</pubDate>
		<dc:creator>Romly</dc:creator>
				<category><![CDATA[iPhone dev]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://romly.com/?p=442</guid>
		<description><![CDATA[残念ながらSnow Leopard専用となってしまったものの、それを補ってあまりあるくらい使いやすくなったXcode3.2ですが、唯一劣化じゃないかと思うことがあります。Command+F、検索ですよ！ Xcode 3. &#8230; <a href="http://romly.com/archives/2009/11/xcode32_replace_in_selected_option.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>残念ながらSnow Leopard専用となってしまったものの、それを補ってあまりあるくらい使いやすくなったXcode3.2ですが、唯一劣化じゃないかと思うことがあります。Command+F、検索ですよ！</p>
<p>Xcode 3.1までは検索ウィンドウが開いて、オプションとかの設定も見やすかったのに、3.2ではエディタの上部にバナーのように表示されるようになりました。み、見づらい・・・</p>
<div id="attachment_443" class="wp-caption aligncenter" style="width: 664px"><img class="size-full wp-image-443" title="xcode32_find_banner" src="http://romly.com/wordpress/wp-content/uploads/2009/11/xcode32_find_banner.png" alt="Xcode3.2の検索バー" width="654" height="65" /><p class="wp-caption-text">Xcode3.2の検索バー</p></div>
<p>検索と置換の切り替えは小さいドロップダウンを操作しなければならなくなったし、検索オプションに至っては検索後のフィールドの横にある小さな小さな虫眼鏡をクリックして選択しなければなりません。劣化だ劣化だーぶーぶー！</p>
<p>そして一番困っていたのが、「選択範囲のみ」のオプションが見あたらないこと。かなり使う機能だったので、なくなってしまったのかと参っていたら・・・あったんですよ。そりゃあるだろうけど、隠しオプションみたいになってんじゃん！</p>
<div id="attachment_444" class="wp-caption aligncenter" style="width: 426px"><img class="size-full wp-image-444" title="xcode32_find_normal" src="http://romly.com/wordpress/wp-content/uploads/2009/11/xcode32_find_normal.png" alt="xcode32_find_normal" width="416" height="136" /><p class="wp-caption-text">いつもの状態</p></div>
<h1 style="text-align: center;"><strong>Altキーを押すと！！</strong></h1>
<p style="text-align: center;">
<div id="attachment_445" class="wp-caption aligncenter" style="width: 426px"><img class="size-full wp-image-445" title="xcode32_find_selectiononly" src="http://romly.com/wordpress/wp-content/uploads/2009/11/xcode32_find_selectiononly.png" alt="選択範囲のみ！！" width="416" height="136" /><p class="wp-caption-text">選択範囲のみ！！</p></div>
<p>うわぁぁぁ、あったぁ！！（笑</p>
<p>それにしても、やっぱり前みたいな独立した検索ダイアログが欲しいなあ。オプションで戻せないかなあ。確かにこっちの方がスマートだとは思うけど、使いづらい・・・</p>
<p>ちなみにこの情報はここで見つけたのです。<br />
Xcode 3.2 find and replace in selected text &#8211; Stack Overflow<br />
<a href="http://stackoverflow.com/questions/1656625/xcode-3-2-find-and-replace-in-selected-text">stackoverflow.com/questions/1656625/xcode-3-2-find-and-replace-in-selected-text</a></p>
]]></content:encoded>
			<wfw:commentRss>http://romly.com/archives/2009/11/xcode32_replace_in_selected_option.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Xcodeでのプリプロセッサ定義</title>
		<link>http://romly.com/archives/2009/10/define_by_project_setting.html</link>
		<comments>http://romly.com/archives/2009/10/define_by_project_setting.html#comments</comments>
		<pubDate>Fri, 23 Oct 2009 15:59:25 +0000</pubDate>
		<dc:creator>Romly</dc:creator>
				<category><![CDATA[iPhone dev]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[トラブル]]></category>

		<guid isPermaLink="false">http://romly.com/?p=335</guid>
		<description><![CDATA[#ifdef DEBUG ????NSLog(@"debug"); #endif 上記みたいなコードはデバッグ用に必ず登場すると思いますが、このプリプロセッサの"DEBUG"というのをXcodeのプロジェクト設定で定義す &#8230; <a href="http://romly.com/archives/2009/10/define_by_project_setting.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<pre>#ifdef DEBUG
????NSLog(@"debug");
#endif</pre>
<p>上記みたいなコードはデバッグ用に必ず登場すると思いますが、このプリプロセッサの<tt>"DEBUG"</tt>というのをXcodeのプロジェクト設定で定義する方法がやっとわかったので下記にメモ。</p>
<p><span id="more-335"></span></p>
<p>もちろんソース上に</p>
<pre>#define DEBUG</pre>
<p>と直接書いてもいいんですが、これだとあまり意味がなくて、Debugビルドでのみ<tt>DEBUG</tt>を有効にし、リリース用のDistributionビルドでは無効にしたい場合、いちいちソースを書き換えないといけません。そういうことしてると、Romlyみたくデバッグ用のビルドがApp Storeに並んでしまいます（ぉ</p>
<p>やっべーと思って早速検索してみたら、英語のページでいくつか、ズバリの方法が書いてありました。でもどのページでもBuild設定の<strong>Other C Flags</strong>に<strong>-DDEBUG</strong>と書けばいいとしか書いてないんですよね。<br />
-Dというのがdefineコマンドみたいなもんで、続けて書いた文字列、この例ならDEBUGが定義され、#ifdef DEBUGが真になると。他にも-DDEBUG=1と書けば、#if (DEBUG==1)などと値も設定できるらしいです。</p>
<p>だがしかし！-DDEBUGを書いた状態でテストしても、#ifdef DEBUGが全然真にならない。原因もわかんないし、仕方なくそれっぽいBuild設定を上から順番に探してみる（Build設定多すぎるよー）と……</p>
<p><strong> GCC 4.2 &#8211; Preprocessing</strong></p>
<p>ってちょーそれっぽいグループ発見！<br />
<strong>Preprocessor Macros</strong>って そのまんまなキーがあったので、そこにDEBUGって書いてみたら、<tt>#ifdef DEBUG</tt>ばっちり有効になりました！?(＞▽＜)／</p>
<p>ちなみに、Other C FlagsやPreprocessor Macrosが見つからない場合、Xcodeのメインウィンドウ（プロジェクトウィンドウ？）の左上にあるドロップダウンで、<strong>Active SDKをUse Base SDKにすると表示されます</strong>。なぜかiPhone DeviceやiPhone Simulatorを選択した状態では表示されません。これもよくあるつまずきポイントらしくてあちこちに書いてありますね。</p>
]]></content:encoded>
			<wfw:commentRss>http://romly.com/archives/2009/10/define_by_project_setting.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhoneでGL_TEXTURE_MAG_FILTERが効かない？</title>
		<link>http://romly.com/archives/2009/07/iphone_gl_texture_mag_filter.html</link>
		<comments>http://romly.com/archives/2009/07/iphone_gl_texture_mag_filter.html#comments</comments>
		<pubDate>Mon, 06 Jul 2009 13:34:10 +0000</pubDate>
		<dc:creator>Romly</dc:creator>
				<category><![CDATA[iPhone dev]]></category>
		<category><![CDATA[OpenGL]]></category>

		<guid isPermaLink="false">http://romly.com/?p=297</guid>
		<description><![CDATA[iPhoneのOpenGLにて、小さいテクスチャを拡大して描画する時の話です。テクスチャの描画にはglDrawTexiOESを使っていて、線形補完はナシ、つまりGL_NEARESTで描画したかったのです。 GL_TEXT &#8230; <a href="http://romly.com/archives/2009/07/iphone_gl_texture_mag_filter.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>iPhoneのOpenGLにて、小さいテクスチャを拡大して描画する時の話です。テクスチャの描画にはglDrawTexiOESを使っていて、線形補完はナシ、つまりGL_NEARESTで描画したかったのです。</p>
<p>GL_TEXTURE_MIN_FILTERおよびGL_TEXTURE_MAG_FILTERはこのように指定しました。</p>
<pre>glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);</pre>
<p>つまり、縮小時は線形補完、拡大時は最近傍描画というわけです。これで3*5の小さいテクスチャを100倍くらいで描画した結果がこれ。</p>
<div id="attachment_299" class="wp-caption alignleft" style="width: 106px"><img class="size-full wp-image-299 " title="gl_nearest" src="http://romly.com/wordpress/wp-content/uploads/2009/07/gl_nearest.png" alt="iPhone シミュレーター" width="96" height="96" /><p class="wp-caption-text">iPhone シミュレーター</p></div>
<div id="attachment_298" class="wp-caption alignnone" style="width: 106px"><img class="size-full wp-image-298  " title="gl_linear" src="http://romly.com/wordpress/wp-content/uploads/2009/07/gl_linear.png" alt="iPod touch" width="96" height="96" /><p class="wp-caption-text">iPod touch</p></div>
<p>ご覧の通りiPhone シミュレーターは補完なしで希望通り描画されていますが、iPod touchではバリ線形補完かかっちゃってます。ｶｺﾜﾙｲ（ ・∀・）</p>
<p><span id="more-297"></span></p>
<p>そこで今度は両方にGL_NEARESTを指定してみました。つまりこんな感じ。</p>
<pre style="font: normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;">glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);</pre>
<p>するとあら不思議、iPod touch上でもちゃんと希望通り描画されました。実機ではGL_TEXTURE_MIN_FILTERが拡大もかねてるんですかね？</p>
<div id="attachment_299" class="wp-caption aligncenter" style="width: 106px"><img class="size-full wp-image-299 " title="gl_nearest" src="http://romly.com/wordpress/wp-content/uploads/2009/07/gl_nearest.png" alt="iPod touch" width="96" height="96" /><p class="wp-caption-text">iPod touch</p></div>
<p>よくわかりませんがうまく出来たのでよしとします。iPod touchしか持ってないのでiPhoneでどうなるかわかりませんが、そんな細かいところに違いがあるとも思えないのできっと同じでしょう。さすがにiPhone 3GSでは挙動が違うでしょうけども。</p>
<p>それにしてもOpenGLで描画してみると、iPhoneが意外と非力なのにびっくりします。すごいグラフィックのゲームがいっぱいあるのでパワーがあるのかと思いきや、みんなちゃんとプログラムで最適化がんがんかけてるんですねーきっと。GL_BLENDを極力使わないとか、glBindTextureを最小限にするとかは基本ですかね。シミュレーターで作ってから実機に転送したら遅くて使い物にならなかったり、あー苦手苦手。そういうのまとめた本ないかな……</p>
]]></content:encoded>
			<wfw:commentRss>http://romly.com/archives/2009/07/iphone_gl_texture_mag_filter.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NSAssertを無効にするには</title>
		<link>http://romly.com/archives/2009/07/block_nsassert.html</link>
		<comments>http://romly.com/archives/2009/07/block_nsassert.html#comments</comments>
		<pubDate>Sat, 04 Jul 2009 04:55:38 +0000</pubDate>
		<dc:creator>Romly</dc:creator>
				<category><![CDATA[iPhone dev]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Xcode]]></category>
		<category><![CDATA[トラブル]]></category>

		<guid isPermaLink="false">http://romly.com/?p=288</guid>
		<description><![CDATA[Objective-CでiPhoneの開発やってると、NSAssertでいろいろチェックするのはよくあるかと思います。 でもおいらはえせプログラマーなのでAssertを使うということに未だに慣れないです。なんかif文のノ &#8230; <a href="http://romly.com/archives/2009/07/block_nsassert.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Objective-CでiPhoneの開発やってると、NSAssertでいろいろチェックするのはよくあるかと思います。</p>
<p style="padding-left: 30px;">でもおいらはえせプログラマーなのでAssertを使うということに未だに慣れないです。なんかif文のノリで、条件式が真ならAssert内のメッセージが表示される、みたいに思っちゃっていっつも逆の式書いちゃいます……</p>
<p>で、リリース時はNSAssertは要らないのでそれらを無効にする方法です。ググっても英語でしか出てこなかったし。</p>
<p><span id="more-288"></span></p>
<p>Xcodeでプロジェクトを開いて、ターゲットの情報から、<strong>Other C Flags</strong>というのを探します。その値に「<strong>-DNS_BLOCK_ASSERTIONS=1</strong>」を書き足せば、NSAssertが無効になります。なので、DistributionのConfigurationだけに書いておけばいいですね。下記に書いてありました。</p>
<p>Re: Removing NSLog &amp; NSAssert for deployment<br />
<a href="http://lists.apple.com/archives/cocoa-dev/2002/Feb/msg00424.html" target="_blank">lists.apple.com/archives/cocoa-dev/2002/Feb/msg00424.html</a></p>
<p>ちなみに<strong>Other C Flags</strong>が無い場合は<strong>OTHER_CFLAGS</strong>というキーで書き足せばいいみたいです。</p>
<p>de-co-de: XCODE 3.1 Other C Flags<br />
<a href="http://de-co-de.blogspot.com/2009/01/xcode-31-other-c-flags.html" target="_blank">de-co-de.blogspot.com/2009/01/xcode-31-other-c-flags.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://romly.com/archives/2009/07/block_nsassert.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iPhone Simulatorのマルチタッチが効かない</title>
		<link>http://romly.com/archives/2009/01/iphone_simulator_multitouch.html</link>
		<comments>http://romly.com/archives/2009/01/iphone_simulator_multitouch.html#comments</comments>
		<pubDate>Fri, 23 Jan 2009 13:39:24 +0000</pubDate>
		<dc:creator>Romly</dc:creator>
				<category><![CDATA[iPhone dev]]></category>
		<category><![CDATA[Xcode]]></category>
		<category><![CDATA[トラブル]]></category>

		<guid isPermaLink="false">http://romly.com/wordpress/?p=18</guid>
		<description><![CDATA[iPhone Simulatorではaltキーを押しながらマウスをクリックすることで、制限はありますが2本指を使ったマルチタッチのシミュレートが出来、ピンチ操作ぐらいはテストできます。のハズなんですがいくらそれをやっても &#8230; <a href="http://romly.com/archives/2009/01/iphone_simulator_multitouch.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="line-height: 1.4em;">iPhone Simulatorではaltキーを押しながらマウスをクリックすることで、制限はありますが2本指を使ったマルチタッチのシミュレートが出来、ピンチ操作ぐらいはテストできます。のハズなんですがいくらそれをやっても、プログラムで二つ目のタッチを検出できない。正確には、タッチのイベントは検出できているのに、座標が0,0になっている。</p>
<p style="line-height: 1.4em;">数時間つぶした挙げ句、Interface BuilderでそのビューのMultiple Touchをオンにしていなかったというオチ。要するにUIViewのmultipleTouchEnabledプロパティをYESにしていなかったという超凡ミス。しかしNOでも二つ目以降の押下やリリースのイベントはちゃんと発生してくれるので、なんでなんでなんでってなった。むー。</p>
]]></content:encoded>
			<wfw:commentRss>http://romly.com/archives/2009/01/iphone_simulator_multitouch.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xcodeでのバックスペースとデリート</title>
		<link>http://romly.com/archives/2009/01/backspace_and_delete.html</link>
		<comments>http://romly.com/archives/2009/01/backspace_and_delete.html#comments</comments>
		<pubDate>Thu, 01 Jan 2009 14:38:41 +0000</pubDate>
		<dc:creator>Romly</dc:creator>
				<category><![CDATA[iPhone dev]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://romly.com/wordpress/?p=20</guid>
		<description><![CDATA[Xcodeでのカーソル移動に引き続いてショートカットキー、バックスペースとデリートです。特にMacではWindowsでのデリートキーにあたるキー（キャレットの右隣を削除）が物理的にないこともあるので、便利。 Ctrl+H &#8230; <a href="http://romly.com/archives/2009/01/backspace_and_delete.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="line-height: 1.4em;"><a style="color: #0755be;" href="http://romly.com/blog/move_caret.html" class="broken_link">Xcodeでのカーソル移動</a>に引き続いてショートカットキー、バックスペースとデリートです。特にMacではWindowsでのデリートキーにあたるキー（キャレットの右隣を削除）が物理的にないこともあるので、便利。</p>
<ul style="padding-left: 28px;">
<li>Ctrl+H delete（WindowsでのBackSpace）</li>
<li>Ctrl+D delete-&gt;（WindowsでのDelete）</li>
</ul>
<p style="line-height: 1.4em;">これらもMacでは標準みたいでいろんなアプリのテキストコントロールで使えました。</p>
]]></content:encoded>
			<wfw:commentRss>http://romly.com/archives/2009/01/backspace_and_delete.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xcodeでのカーソル移動</title>
		<link>http://romly.com/archives/2009/01/moving_caret.html</link>
		<comments>http://romly.com/archives/2009/01/moving_caret.html#comments</comments>
		<pubDate>Thu, 01 Jan 2009 12:21:35 +0000</pubDate>
		<dc:creator>Romly</dc:creator>
				<category><![CDATA[iPhone dev]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://romly.com/wordpress/?p=22</guid>
		<description><![CDATA[あけましておめでとうございます。 2009年もRomlyはまあ適当にやっていきます。 さて、冬休みなので久しぶりにRomly作りをがんばっているわけですが、まだXcodeに慣れなくて使いづらい・・・ Objective- &#8230; <a href="http://romly.com/archives/2009/01/moving_caret.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="line-height: 1.4em;"><strong>あけましておめでとうございます。</strong></p>
<p style="line-height: 1.4em;">2009年もRomlyはまあ適当にやっていきます。</p>
<p style="line-height: 1.4em;">さて、冬休みなので久しぶりにRomly作りをがんばっているわけですが、まだXcodeに慣れなくて使いづらい・・・<br />
Objective-Cを編集できるeclipseのプラグインとかあればいいのに。無いものは仕方ないので、Xcodeをいろいろ覚えてます。まずはカーソルキーの移動方法。</p>
<p style="line-height: 1.4em;">Xcodeに限らず、Mac OS Xの標準のテキストコントロールは下記のショートカットが矢印キーの代わりにもなるみたい。覚えづらい・・・</p>
<ul style="padding-left: 28px;">
<li>Ctrl+P ↑</li>
<li>Ctrl+N ↓</li>
<li>Ctrl+B ←</li>
<li>Ctrl+F →</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://romly.com/archives/2009/01/moving_caret.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

