Printing NSCollectionView
Printing NSCollectionView
- Subject: Printing NSCollectionView
- From: Steve Mills <email@hidden>
- Date: Tue, 08 Nov 2016 20:24:12 -0600
I'm trying to create a temporary NSCollectionView for printing (this code is replacing old IKImageBrowserView printing code). I'm connecting it to the same dataSource as my normal document's collection view, and binding the NSContentBinding to the same array controller's arrangedObjects as the one in the document. My data source (the document) is returning the correct numberOfItemsInSection, but the itemForRepresentedObjectAtIndexPath method is never being called. I've tried calling invalidateLayout on the layout and reloadData on the collection view after getting everything all hooked up, but it just ain't working. Any advice? It doesn't need to be in a scroll view does it?
--
Steve Mills
Drummer, Mac geek
_______________________________________________
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