• 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
Printing NSCollectionView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: WatchKit Noob Question
  • Next by Date: Re: WatchKit Noob Question
  • Previous by thread: Re: Creating an NSWindow with utility style in Xcode storyboard?
  • Next by thread: App to Monitor Accessibility Notifications?
  • Index(es):
    • Date
    • Thread