Mac OS XやiOSのフレームワークで提供しているタイマーには幾つかの種類がありますが、それぞれの精度の違いはどれくらいあるのだろう、という点が気になって調査していました。 そんな折、「3秒だけCFRunLoopのソースを読んだんだけど」と splhack 氏が色々とアドバイスをくれました。 ちなみに、タイマー調査のためのアプリは、以下の場所で現在作成中です。 続きを読む
Mac OS XやiOSのフレームワークで提供しているタイマーには幾つかの種類がありますが、それぞれの精度の違いはどれくらいあるのだろう、という点が気になって調査していました。 そんな折、「3秒だけCFRunLoopのソースを読んだんだけど」と splhack 氏が色々とアドバイスをくれました。 ちなみに、タイマー調査のためのアプリは、以下の場所で現在作成中です。 続きを読む
MacOSXプログラミング。毎日更新。 話題: Cocoa, Objective-C, Snow Leopard 前回、メニュー選択中は NSTimerが発火しないことが分かった。NSTimerのリファレンスを読んでみる。 NSTimer Class Reference Overview によると NSTimerは3つの生成方法があるらしい。 (1) current NSRunLoop + NSDefaultRunLoopMode の組み合わせ (2) Run Loop と Mode ができる (3) 初回コールバックの日時を NSDateで指定できる 前回まで使っていたのは (1)の方法。scheduleから始まるクラスメソッドを使う場合がこれに相当する。 [NSTimer scheduledTimerWithTimeInterval:1.0 target:_fullscreen_vie
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く