【OS X】iTunes Library Framework Published on 2013年4月11日木曜日 Leave your thoughts » Tweet これも知らなかった。Mac用に iTunes Library Framworkのリファレンスが公開されていた。 iTunes Library Framework Reference <img src="http://b.hatena.ne.... 続きを読む
スレッドでビューを更新しているバグを見つける Published on 2013年2月14日木曜日 Leave your thoughts » Tweet Method Swizzlingを使い、-[UIView setNeedsDisplay] を置き換えてメインスレッド以外で呼び出されるケースを検出するという話。 UIView Backgrou... 続きを読む
URLスキーム分解ライブラリ Published on 2013年2月13日水曜日 Leave your thoughts » Tweet 例えば [JLRoutes addRoute:@"/:object/:action/:primaryKey" handler:^BOOL(NSDictionary *parameters) { NSString *object = parameters[@"object"]; NSString *act... 続きを読む
Mac OS X 10.6 Snow Leopardから、AudioHardware〜とかAudioDevice〜とかAudioStream〜とかのGet・Set系がことごとくDEPRECATEDになってしまいました。 僕の認識では、もともとAudioObject〜があって、そのコンビニエンスメソッドとしてAudioDeviceとかの関数が... 続きを読む
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84... 続きを読む
I had added code to juce_mac_Messaging.cpp back in 1.45 to handle CD insertion/ejection notification using Carbon Events (kEventClassVolume/kEventVolumeMounted and friends) Now that I'm on the tip, does anyone know of a more Cocoa-friendly wa... 続きを読む
ScriptingBridgeCriticisms last edited November 26, 2007 14:23:28 (82.26.69.165) CocoaDev is sponsored by: Panic: Shockingly good Mac software! Please don't flame. 1. provides 'Cocoa-ish' semantics basically by fibbing its face off about how A... 続きを読む
Say you want to talk to another app through Applescript. With 10.5, you can much more easily get there from Cocoa without complex forays into CoreServices, Carbon and AppleEvents. The docs on how to do it are a little thin at times (as all Ap... 続きを読む
アプリケーションからメールボックスの受信メール一覧を作成する超簡単なサンプルを作成してみました。 適当なプロジェクトを作成しフレームワークにScriptingBredge.Frameworkを追加し、Mail.hはプロジェクトのルール設定にsdefとsdpのコマンドを追加します。... 続きを読む
アプリケーションがCocoaを使ってObjective-Cで書かれていても、AppleScriptスクリプトを使用して一定の操作を実行できます。このテクニカルノートでは、CocoaアプリケーションをAppleScriptを組み込んで実行する方法について説明します。また、NSAppleScriptク... 続きを読む
Blocks を使ったアニメーションのひっかかりを解消する 2011年8月22日月曜日 | Published in ios 4.3, サンプルあり | 0 コメント Tweet Cocoaの日々: [iOS] UITableView でプルダウンすると再読込するユーザインタフェースを実装 以前紹介した投稿でアニメーシ... 続きを読む
[iOS] バックグラウンド実行見本(Task Completion) 2011年4月8日金曜日 | Published in Grand Central Dispatch, ios 4.3, iPhone, Multi Tasking, サンプルあり | 0 コメント Tweet Task Completion を使った iOS4 でのバックグラウンド実行サンプルを作って... 続きを読む
PhantomJS ってコマンドラインツールがありまして、 JavaScript で DOM いじくったりなんかいろいろできるんですが、 QtWebKit ベースなのが気に食わないんです。 Mac で使うぶんには Cocoa と WebKit.framework でどうにかなるだろと。というわけで Cocoa に移... 続きを読む
stidevで話をしたcocos2dに関する発表資料動画版で トランジッションをがんばったので、是非動画でごらんください。 続きを読む
iOS4 からアプリケーションのバックグラウンド動作がサポートされているが、それらはだいぶ制限されたものとなっていて、通常のアプリケーションはバックグラウンドでは最大10分程度しか生存することが出来ない。 それを回避するために Info.plist に特殊なフラ... 続きを読む
Hello! I was wondering if you could help me figure out how to progmatically get the Display Name for a monitor by using its Display ID number in Mac OS X (10.5)? A requirement is if I give a function the Display ID, it'll provide the Display ... 続きを読む
AsyncSocket is a TCP/IP socket networking library that wraps CFSocket and CFStream. It offers asynchronous operation, and a native cocoa class complete with delegate support. Here are the key features: Queued non-blocking reads and writes, wi... 続きを読む
自分自身が最初に勉強した時もそうでしたが、iPhoneアプリケーションの開発方法を新しく勉強するにあたって、最初の難関はメモリー管理の部分にあります。周りで勉強をはじめた人のコードを読んでいても、メモリーリークやリリースし過ぎているケースをよく見ま... 続きを読む