2009-09-01から1ヶ月間の記事一覧
CoreLocation.frameworkを追加 CLLocationManagerのインスタンス生成 デリゲート先を指定し、startUpdatingLocationで通知を開始 通知を受け取る - (void)locationManager:(CLLocationManager*)manager didUpdateToLocation:(CLLocation*)newLocation fromLo…
http://ipodtouchlab.com/2009/08/iphone-gps-hidentweet-444.html 『hideNtweet 』は、iPhoneのGPSを使って、子供の頃によく遊んだ「かくれんぼ」をするアプリです。 参加するプレイヤーの位置はリアルタイムで地図に表示され、"鬼"はカメラで他のプレイヤ…
Dir::glob("#{dir}*").each {|f| if FileTest.directory?(f) p f end }
-( BOOL )mouseDownCanMoveWindow { return NO ; } ^K
NSSavePanelを使う http://www.oomori.com/cocoafw/ApplicationKit/NSSavePanel/panel5.html
プロジェクト設定で、DEBUGモードのときだけGCC_PREPROCESSOR_DEFINITIONSに_DEBUG等の文字列を設定し、 #ifndef _DEBUG ... #endif http://www.banwanko.net/iPhoneDev/?%B4%C4%B6%AD
http://edotprintstacktrace.blogspot.com/2007/10/nsview.html
setDrawsBackgroundメソッドの引数をNOにすればよい。 [textView setDrawsBackground:NO];
[[NSFileManager defaultManager] directoryContentsAtPath:@"/Users/hoge/"]; を使うとNSArray型でディレクトリの中身一覧を返してくれる。サブディレクトリまでは検索してくれない模様。
[scrollView setHasHorizontalScroller:NO]; [scrollView setHasVerticalScroller:NO];
http://blog.livedoor.jp/firstresponder/archives/50060609.html ウィンドウのデリゲート先でappDidFinishLaunchingを定義しておくと、起動直後に呼ばれる /* 起動直後(NSApplication's delegate) */ - (void) applicationDidFinishLaunching:(NSNotificati…