<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>Aerialarts &#187; Cocoa</title>
	<atom:link href="http://aerial.st/tags/cocoa/feed" rel="self" type="application/rss+xml" />
	<link>http://aerial.st</link>
	<description></description>
	<lastBuildDate>Thu, 22 Jul 2010 13:00:53 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/tags/cocoa/feed" />
		<item>
		<title>MClock : 最前面に表示する時計</title>
		<link>http://aerial.st/archive/2010/01/31/mclock</link>
		<comments>http://aerial.st/archive/2010/01/31/mclock#comments</comments>
		<pubDate>Sun, 31 Jan 2010 14:21:52 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[ソフトウェア]]></category>
		<category><![CDATA[Cocoa]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=605</guid>
		<description><![CDATA[「会議中にはプロジェクタを時計で映せば時間管理がしやすい」らしいので、常に最前面に表示する時計を作ってみた。 GitHubにおいてある： MClock 全然大したことはやってなくて、次の２つをやってるだけ。 アプリケーション起動時にNSWindowのlevelをNSFloatingWindowLevelにする（なのでアラート画面よりは下に来る） NSTimerで0.5秒ごとにNSDateを生成してNSTextFieldの文字列を更新してる（なので最大0.5秒のずれが生じる）。 デジタル表示だとわかりにくいので、会議の開始・終了時間を設定してプログレスバー表示するとか、改善方法を考え中。]]></description>
		<wfw:commentRss>http://aerial.st/archive/2010/01/31/mclock/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2010/01/31/mclock" />
	</item>
		<item>
		<title>QTKitPlayerにフレームを画像として保存する</title>
		<link>http://aerial.st/archive/2009/03/21/save-current-frame-as-image-with-qtkitplayer</link>
		<comments>http://aerial.st/archive/2009/03/21/save-current-frame-as-image-with-qtkitplayer#comments</comments>
		<pubDate>Fri, 20 Mar 2009 23:12:47 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[開発]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[QTKit]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=445</guid>
		<description><![CDATA[QTKitPlayerで再生中の動画の、現フレームを画像として保存する方法。ここではpngに限定してる。MovieDocument.hに次のコードを追加。 - (IBAction)doSaveCurrentFrameAsImage:(id)sender { NSSavePanel *savePanel; QTTime qtCurrentTime = [mMovie currentTime]; float currentTime = qtCurrentTime.timeValue / qtCurrentTime.timeScale; NSString *baseName = [[[self fileName] lastPathComponent] stringByDeletingPathExtension]; NSString *fileName = [NSString stringWithFormat:@"%@-%07.2f.%@", baseName, currentTime, @"png"]; // init savePanel = [NSSavePanel savePanel]; // run the export sheet [savePanel beginSheetForDirectory:nil file:fileName modalForWindow:mMovieWindow modalDelegate:self didEndSelector:@selector(saveCurrentFrameAsImagePanelDidEnd: returnCode: contextInfo:) contextInfo:nil]; } - (void)saveCurrentFrameAsImagePanelDidEnd:(NSSavePanel [...]]]></description>
		<wfw:commentRss>http://aerial.st/archive/2009/03/21/save-current-frame-as-image-with-qtkitplayer/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2009/03/21/save-current-frame-as-image-with-qtkitplayer" />
	</item>
		<item>
		<title>universalchardetをCocoaで</title>
		<link>http://aerial.st/archive/2009/03/13/universalchardet-to-cocoa</link>
		<comments>http://aerial.st/archive/2009/03/13/universalchardet-to-cocoa#comments</comments>
		<pubDate>Thu, 12 Mar 2009 21:43:29 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[開発]]></category>
		<category><![CDATA[Cocoa]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=437</guid>
		<description><![CDATA[Mozillaのエンコーディング判別ライブラリをCに切り出したuniversalchardetを、Cocoaなフレームワークにしてみた。 1 kB程度あればほぼ確実に判別できるので、NSStringのinitWithContentsOfFile:usedEncoding:error:の代わりに使えそう。 でもやっぱり数文字だとミスは増える。 ASCIIに収まる文字のみで構成されている場合には、1 kB程度あっても判別できていない、というかASCII互換なエンコーディングから適当なエンコーディングを選ぶことができない（Shift_JISとして保存された文章だけどASCII部分しか使われていない、という可能性）。 まぁ実用的には自動判別で読めればいいわけだから、適当に返せばいいのかも。というわけで、initWithContentsOfFile:usedEncoding:error:の代替メソッドを作るなら、 まずinitWithContentsOfFile:usedEncoding:error:で読んでみる。UTF-16、32なら判別可能だし、OS 10.5で保存された文章であればファイルシステムの拡張属性から保存時のエンコーディングを読み取ってくれる。 universalchardetで判別し、判別できたらinitWithContentsOfFile:encoding:error:で読み込む。 判別できなかったらUS-ASCIIのみで構成されている可能性があるので、NSASCIIStringEncodingとしてinitWithContentsOfFile:encoding:error:で読み込んでみる。 読み込めなかったら、諦める？ というような流れかな？ただしテキストファイルであるとわかっていることが前提（そうでない場合、当然universalchardetで判別できない）。 ちなみに、NKFでNSDataを拡張するNKFCocoaなるものがあるのか。]]></description>
		<wfw:commentRss>http://aerial.st/archive/2009/03/13/universalchardet-to-cocoa/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2009/03/13/universalchardet-to-cocoa" />
	</item>
		<item>
		<title>Carbonの新APIによる、Finder経由でのファイル削除</title>
		<link>http://aerial.st/archive/2008/11/13/move-to-trash-with-carbo</link>
		<comments>http://aerial.st/archive/2008/11/13/move-to-trash-with-carbo#comments</comments>
		<pubDate>Thu, 13 Nov 2008 14:52:47 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[開発]]></category>
		<category><![CDATA[Carbon]]></category>
		<category><![CDATA[Cocoa]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=433</guid>
		<description><![CDATA[以前はAppleScript経由で面倒っぽかったけど、LeopardからCarbonにAPIが加わったらしい。 CarbonCore Framework Release Notes for Mac OS X v10.5  追記 @ 2009-03-23 とりあえず以下のコードで動くっぽい。要&#60;CoreServices/CoreServices.h>。 - (BOOL)moveFileToTrash:(NSString *)filename { FSRef fileRef; // 対象の存在をチェック if(![[NSFileManager defaultManager] fileExistsAtPath:filename]) return NO; // FSRefの取得（ちなみにコードを拝借したCocoaDVDPlayerではUTF-8ではなくASCIIにしてた） //const char *cPath = [filename UTF8String]; // 追記その2参照 const char *cPath = [filename fileSystemRepresentation]; OSStatus result = FSPathMakeRef ((UInt8*)cPath, &#38;fileRef, NULL); if (result != noErr) return [...]]]></description>
		<wfw:commentRss>http://aerial.st/archive/2008/11/13/move-to-trash-with-carbo/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2008/11/13/move-to-trash-with-carbo" />
	</item>
		<item>
		<title>GTK+ on OSX</title>
		<link>http://aerial.st/archive/2008/09/27/gtk-on-osx</link>
		<comments>http://aerial.st/archive/2008/09/27/gtk-on-osx#comments</comments>
		<pubDate>Fri, 26 Sep 2008 15:03:53 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[ソフトウェア]]></category>
		<category><![CDATA[開発]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=420</guid>
		<description><![CDATA[Mac OS XでGTKアプリをビルドできる「GTK+ on OSX」 &#8211; マイコミジャーナル 例えばこれを使ってビルドされたGIMPの起動にはX11が必要なくなる、ということらしい。 ただしMac OS X 10.4 (Intel) が必要。]]></description>
		<wfw:commentRss>http://aerial.st/archive/2008/09/27/gtk-on-osx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2008/09/27/gtk-on-osx" />
	</item>
		<item>
		<title>Fwd: 詳解 Objective-C 2.0</title>
		<link>http://aerial.st/archive/2008/05/29/objective-c-20written-by-ogiwara</link>
		<comments>http://aerial.st/archive/2008/05/29/objective-c-20written-by-ogiwara#comments</comments>
		<pubDate>Thu, 29 May 2008 14:26:58 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[本]]></category>
		<category><![CDATA[開発]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=400</guid>
		<description><![CDATA[荻原さんがObjective-C 2.0の本を出す。これは買わねば。]]></description>
		<wfw:commentRss>http://aerial.st/archive/2008/05/29/objective-c-20written-by-ogiwara/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2008/05/29/objective-c-20written-by-ogiwara" />
	</item>
		<item>
		<title>LeopardでNSStringのinitWithContentOfFile:usedEncoding:error:</title>
		<link>http://aerial.st/archive/2008/05/16/nsstring-init-with-encoding-detection-on-leopard</link>
		<comments>http://aerial.st/archive/2008/05/16/nsstring-init-with-encoding-detection-on-leopard#comments</comments>
		<pubDate>Thu, 15 May 2008 17:27:05 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[開発]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=389</guid>
		<description><![CDATA[cocoa-dev-japanのMLへの投稿で見つけたネタを劣化コピーな感じでメモしておく。 Tigerでは（少なくとも日本語圏的に）まったく役に立たなかったNSStringのinitWithContentsOfFile:usedEncoding:error:だけれども、Leopardでは読み込むファイルのエンコーディングを適切に返してくれる場合もあるとのこと。 それは当該ファイルをLeopardなNSStringのwriteToFile:atomically:encoding:error:で文字列をファイルに書き出していた場合。これはNSStringがその内容をディスクに書き出す際に、拡張ファイルアトリビュート（ファイルシステム的なアレ）にエンコーディングを記録しておき、読み込む際にそれを用いるという仕組み。 したがって、NSDataで書き出した場合（ネット上のテキストファイルをSafariなどのブラウザで保存した場合はたぶんNSDataを使ってる）や、他のマシン上で書き出したものをコピペしてきたとかだと通用しない（と思う）。 誰かuniversalchardetを移植してくれないだろうか、と他力本願に考えている今日この頃。]]></description>
		<wfw:commentRss>http://aerial.st/archive/2008/05/16/nsstring-init-with-encoding-detection-on-leopard/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2008/05/16/nsstring-init-with-encoding-detection-on-leopard" />
	</item>
		<item>
		<title>Dat2HTML Rev 0.4をリリース</title>
		<link>http://aerial.st/archive/2008/04/20/dat2html-rev-04</link>
		<comments>http://aerial.st/archive/2008/04/20/dat2html-rev-04#comments</comments>
		<pubDate>Sun, 20 Apr 2008 13:02:13 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[ソフトウェア]]></category>
		<category><![CDATA[2ch]]></category>
		<category><![CDATA[Cocoa]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=375</guid>
		<description><![CDATA[詳しくはリリースノートを。 Universal Binaryにしてみたつもりだけど、手元にIntel Macがないために試せない罠。]]></description>
		<wfw:commentRss>http://aerial.st/archive/2008/04/20/dat2html-rev-04/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2008/04/20/dat2html-rev-04" />
	</item>
		<item>
		<title>Cocoa Wikiのデザインを変えた</title>
		<link>http://aerial.st/archive/2008/04/20/redesigned-cocoawiki</link>
		<comments>http://aerial.st/archive/2008/04/20/redesigned-cocoawiki#comments</comments>
		<pubDate>Sat, 19 Apr 2008 23:31:54 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[ネット]]></category>
		<category><![CDATA[Cocoa]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=371</guid>
		<description><![CDATA[放置しっぱなしだったCocoa Wikiのデザインを変えた、というか以前のこのブログのデザインをそのまま流用した。Xcodeのアイコンを勝手に使っちゃったけど、大丈夫だろうか。 パラグラフごとの編集機能（paraedit.inc.php）も追加したし、少しは使いやすくなんるんじゃないかと。 でももうPukiWikiのデザインはあまり書き換えたくない。$page_titleがページのタイトルではなくWikiのタイトルだったり、なんか変だ。あまり大規模なものを作ったことがないけど、こういうもんなのか？]]></description>
		<wfw:commentRss>http://aerial.st/archive/2008/04/20/redesigned-cocoawiki/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2008/04/20/redesigned-cocoawiki" />
	</item>
	</channel>
</rss>
