タグ

cocoaに関するxoyipのブックマーク (3)

  • Cocoa Popup window in the Status bar

    Developer or Designer? I have some nice Projects. Maybe you have apps in the App Store? Try NativeConnect. My CodeBox app for Mac OS X has got an embedded helper app named CodeBar. It is a small utility resided in the system status bar. In this blog post, I'm going to share an open-source project demonstrating how to implement a custom status icon with a popup window. I hope it will be useful for

  • NSSplitView initial divider position?

    I have an NSSplitView that uses autolayout to position the two subviews inside of it. Everything works great, but I want to set the initial position of the divider to a constant value (300 pixels) for aesthetic reasons. I'm not using interface builder. If I do [_splitView setPosition:300 ofDividerAtIndex:0];, I see no effect, same thing if I add a [_splitView adjustSubviews] call right after that.

    NSSplitView initial divider position?
  • CocoaにおけるMVCについてちょっと勉強してみた – morizotter blog

    Objective-Cを書きながらMVCについて悩むことが多かったので、この機会に勉強してみることにしました。参考にしたのは、Appleのドキュメント(Objective-Cプログラミングの概念)です。MacアプリとiOSアプリを包含する資料ですが、iOSに焦点をあてて自分なりに簡単にまとめてみようと思います。 モデル => モデルオブジェクトはデータや基的な振る舞いをカプセル化する アプリケーションの永続的な状態を構成するデータは、ファイルに保存するか、データベースに格納するかにかかわらず、アプリケーションに読み込んだ後はモデルオブジェクトの管理下に置かなければならない。 モデルオブジェクトには、自身を目に見える形に表現し編集できるようにするユーザインターフェイスとの間に、明示的な接続はない。書式文字列、日付の表現方法等に関する情報は別の場所で管理すべき。 現実的にはある程度柔軟に対応

  • 1