覚書き 2010年12月31日

  • ドキュメントベースで CoreData(SQLite3) を使っていてアプリ内に複数モデルがある場合は NSPersistentDocument の managedObjectModel をオーバーライトすること。これをしないとマイグレーションで確実に泣くことになる #memo
  • ああ、はまったはまった。CoreData で複数モデルはトラップだな。回避方法がわかってしまえばなんということはないんだけど Xcode のテンプレのままだと Lightweight Migration で確実にはまる #memo
  • まとめ。Mac OS X(10.6以上)のホットキーは RegisterEventHotKey() と [NSEvent addLocalMonitorForEventsMatchingMask:NSSystemDefinedMask handler:] で実装できる #memo
  • この時代に InstallApplicationEventHandler() はもうないだろと思っていたら Snow Leopard から [NSEvent addLocalMonitorForEventsMatchingMask:handler:] が用意されいた #memo

Digest powered by RSS Digest

Comments are closed.