for example add a button to scroolview
NSButton* custombutton = [[NSButton alloc] initWithFrame : NSMakeRect(0,0, 100, 30)];
[scroolview setDocumentView:custombutton];
for example add a button to scroolview
NSButton* custombutton = [[NSButton alloc] initWithFrame : NSMakeRect(0,0, 100, 30)];
[scroolview setDocumentView:custombutton];