Tabキーを押すと、Window上に配置されているNSViewのnextKeyViewの間を移動しますが、これを無効にするには、

  1. NSWindowのinitialFirstResponderを適当なView(contentViewなど)に設定する
  2. subviewsのnextKeyViewをself(view自身)にする

これでひとまず目的を実現できるようです。 きっともっと簡単な方法がありそうな気がするのですが、とりあえず。

posted by Png genki on Sat 11 Jul 2009 at 19:33

It's just a demo of Formula :-)


a & = & a + 1 \\
1 & = & 1 + \frac{1}{a} \\
0 & = & \frac{1}{a} \\
a & = & \pm\infty

このブログではデフォルトでeqnarray*環境なので、こんな感じに書けます。

   1  [math]
   2  a & = & a + 1 \\
   3  1 & = & 1 + \frac{1}{a} \\
   4  0 & = & \frac{1}{a} \\
   5  a & = & \pm\infty 
   6  [/math]

posted by Png genki on Sat 11 Jul 2009 at 08:53
Contents
CocoaでNSView間のTab移動を無効にする
a=a+1
Comments
瀧内元気: MacOS版は以下にあります * [genki/ViMouse](https://githu... '23-1
KingofSmack: Here also good reads for this mobile applicatio... '14-5
Spencer: You don't have to re-compile it, this version w... '14-4
staiano: Any chance we can get a recompile for 10.9? '14-1
dsjf: https://gist.github.com/6bf1bf2c3cbb5eb6e7a7 これ... '13-1
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ