Question

I would like to create a Cocoa library Test.dylib that provides Icon view using IKImageBrowserView. I cannot create IKImageBrowserView in nib since dylib does not support Resources. So, I am creating the IKImageBrowserView programmatically as follows:

IKImageBrowserView *browser = [[IKImageBrowserView alloc]initWithFrame:[self bounds]];
Datasource *ds = [[dataSource alloc]init];
[browser setDataSource:ds];
[browser setDelegate:ds];

But, when there are more items than visible area vertical scrollers should be displayed which is not happening.

How do I support scrolling for IKImageBrowserView that is created programmatically?

I have tried the following with no positive results:

NSScrollView *scroller = [[NSScrollView alloc]initWithFrame:[self bounds]];
[scroller addSubview:browser];

How do I solve this? Thanks in advance.

Regards, Deepa

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top