> On Apr 17, 2015, at 10:51 AM, Christian Schmitz > <[email protected]> wrote: > > >> As soon as It tries to save the eps file the NilObjectException highlights >> this line —> b.Write webView.RenderDocumentToEPSMBS > > you should split the line. > > is webview nil? > Does it return a nil memoryblock? > is b nil? > > because converting empty memoryblock to string would give an error.
The webView not nil, b is not nil. What more odd if I take the same code I had. Then change this one line b.Write wvVectorView1.RenderDocumentToEPSMBS to b.Write wvVectorView1.RenderDocumentToPDFMBS it will save the view to a PDF without issue. It only fails at EPS. I tried to look at Apple Developer Connect for info about EPS related items for tips or to see if anything been deprecated recently ( since apple added swift to objective-c last summer a ton of items have been deprecated since 10.10, not sure if this was also?) However, I had a hard time finding anything on EPS in apple docs for Mac OS. The only items I found where NSPrintOperation and NSEPSImageRep (I not sure if these are what being used here when calling wvVectorView1.RenderDocumentToEPSMBS ) I might just go with the htmlview.RenderDocumentToPDFMBS and use PDF over EPS, It should basically support the same thing and it is working great with xojo, your plugins and mac. Regards, Obleo A. Beck _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
