The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   Omni Frameworks (http://forums.omnigroup.com/forumdisplay.php?f=16)
-   -   How to get a preview in the document picker (http://forums.omnigroup.com/showthread.php?t=22150)

SpiraMira 2011-09-15 01:49 AM

How to get a preview in the document picker
 
Hi again,

How does one get a preview of images in the document picker? All my images show the "Lame RTF Preview". Can't figure this one out.

Thanks in advance, Spira

SpiraMira 2011-09-15 02:24 AM

Ok - answered my own question:

- subclassed OUIDocumentProxy. The "getPDFPreviewData:modificationDate:error:" method returns nil for data (?) It only processes the file date.

- overloaded it to return the actual image data! in my subclass and voila!

Spira


All times are GMT -8. The time now is 09:55 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.