Troubles with CollectionView and IKImageBrowserView
Troubles with CollectionView and IKImageBrowserView
- Subject: Troubles with CollectionView and IKImageBrowserView
- From: Manuel <email@hidden>
- Date: Wed, 11 Jun 2008 22:14:02 +0200
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 (email@hidden)
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:
This email sent to email@hidden