NSTextFieldのサンプルです。
「テキスト出力」ボタンを押すと「Hello World!」と出力し、「テスト入力」ボタンを押すとテキストフィールドの内容をアラートを表示します。
公式のヘルプはこちら。
NSTextField Class Reference
http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSTextField_Class/Reference/Reference.html
日本語の解説が良い人はこちらのSatoshi Oomoriさんのページを参照下さい。
http://www.oomori.com/cocoafw/ApplicationKit/NSTextField/index.html
※注記
http://www.oomori.com/cocodesu/index.html