Hello Macprogrammers

I've a problem with my IKImageBrowser in combination with a CollectionViewItem.

I have a NSWindow with a NSCollectionView and a NSArrayController. I extended the NSCollectionViewItem to reference the IKImageBrowserView in an outlet and use the NSCollectionViewItem as a Datasource for the IKImageBrowser (Connected together in Interface Builder):

NSWindows -> NSCollectionView (With NSArrayController) -> MYNSCollectionViewItem (as ControllerItem) -> NSViewItem -> IKImageBrowserView


In MyNSCollectionViewItem I've implemented following 2 Datasource Methods:

- (int)numberOfItemsInImageBrowser:(IKImageBrowserView*)view
- (id)imageBrowser:(IKImageBrowserView *) view itemAtIndex:(int) index

But the IKImageBrowserView doesn't call these methods. I setup a testmethod in the MYNSCollectionViewItem like the following code, to verify that the imagebrowser outlet is set and to set again the datasource:

- (IBAction)refreshView:(id)sender {
        Album *representedObject = [self representedObject];
        NSLog(@"UniqueData per row: %@", [representedObject uniqueData]);
        [imageBrowser setDataSource:self];
        [imageBrowser reloadData];
}

But even if i explicit set the IKImageBrowser DataSource to the MYNSCollectionViewItem the DataSource methods wouldn't be called by the IKImageViewBrowser. Do you know this problem? Outside the new CollectionView with a simple implementation, this code works very well.

Kind regards from Lucerne (Switzerland)




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to