• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Troubles with CollectionView and IKImageBrowserView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Troubles with CollectionView and IKImageBrowserView
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: NSData from NSArchiver and plist Utility
  • Next by Date: Re: Bound NSTreeNode - Inserting Children
  • Previous by thread: Re: NSTask(syslog)->NSPipe->NSFileHandle->readInBackgroundAndNotify buffers
  • Next by thread: Re: Troubles with CollectionView and IKImageBrowserView
  • Index(es):
    • Date
    • Thread