私は現在 NSScrollView を使用しています。スクロールすると、その下にボタンが再表示されます。どうすればこれを修正できますか。
問題の表示は次のとおりです。
int x = 00; //position x
int y = 00; //pssition y
int width = 100;
int height = 40;
NSButton* a = [[NSButton alloc] initWithFrame:NSMakeRect(x, y, width, height)];
a.title = @"Scene";
//[a setButtonType:<#(NSButtonType)#>]; //Set what type button You want
[a setBezelStyle:NSSquareLineCapStyle]; //Set what style You want
[self.box addSubview:a];
これで、ボタンが適切に表示されることがわかりました。スクロールすると、再描画されているように見えます。最初の下部をまったく表示したくありません。