[PDFView setNeedsDisplay:YES] will not redraw the view?

I have use [PDFView setNeedsDisplay:YES] to let the PDF view redraw, however it doesn't work unless I zoom in or zoom out the PDF page...


Is it a MacOS 10.12 bug or something I can do to fix this?

Replies

It's a Sierra bug. Actually a lot of PDFKit functionality was broken in Sierra, also including search and thumbnail views (it seems PDFKit in Sierra is a new SDK but is undocumented / incomplete).