右側にボタンがある NSTextField を作成しようとしています (NSSearchView に似ています) が、NSButton の下に移動せずに NSTextField のテキストをスクロールする方法がわかりません。
これまでの私のコードは次のとおりです。
rightButton = [[NSButton alloc] initWithFrame:rect];
[rightButton setTarget:self];
[[rightButton cell] setHighlightsBy:NSNullCellType];
[rightButton setImage:[NSImage imageNamed:@"rightButton"]];
[rightButton setAction:@selector(action:)];
[rightButton setBordered:NO];
何かご意見は?
編集:これは問題のスクリーンショットです。