Re: PDFThumbnailView Problem (kind of)
Re: PDFThumbnailView Problem (kind of)
- Subject: Re: PDFThumbnailView Problem (kind of)
- From: Matthew Weinstein <email@hidden>
- Date: Wed, 23 May 2012 19:30:32 -0700
You can't believe how easy that was to implement in cocoa:
[myThumbnailView setThumbnailSize: [myThumbnailView thumbnailSize]];
That's it; works like a charm.
On May 22, 2012, at 11:37 PM, Antonio Nunes wrote:
> On 23 May 2012, at 03:53, Matthew Weinstein wrote:
>
>> I have a typical thumbnailview on a drawer and a pdfview in main window. I have a category that lets me drag and drop a pdf onto the pdfview; it then gets the url and sets a pdfdocument to that url; sets the pdfview and sets the thumbnailview to the pdfview.
>>
>> It "seems" to work; but I can't click on the thumbnails; they're there, but not clickable, until I resize the window, then all is well.
>>
>> Any idea of what's going on and what I need to do to "liberate" my thumbnailview (I've tried sending a setNeedsDisplay:-- Nada).
>
> I've had a similar issue (and there are other issues with PDFThumbnailView that you may or may not run into). This is how I worked around it:
> self.thumbnailView.PDFView = self.previewCanvas;
> dispatch_async(dispatch_get_main_queue(), ^{
> self.thumbnailView.thumbnailSize = self.thumbnailView.thumbnailSize;
> });
>
> Simply setting the thumbnail size causes the thumbnail view to straighten itself out.
>
> -António
>
> ----------------------------------------------------
> There is a world of difference between
> searching for happiness and choosing
> to be happy.
> ----------------------------------------------------
>
>
>
>
_______________________________________________
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