Hello,


On Jan 15, 2013, at 1:37 AM, Christian Schmitz wrote:

> 
> Am 15.01.2013 um 00:13 schrieb Obleo Beck <[email protected]>:
> 
>> Hello,
>> 
>> A Cocoa NSInvalidArgumentException was not handled: -[PDFSelection 
>> addRTFDToPasteboard:]: unrecognized selector sent to instance 0x13e4af0. 
>> Please report to the application developer. The application will quit now. 
>> (use NSExceptionMBS class to catch this exception)
> 
> Is addRTFDToPasteboard the exact name of the function called?
> Because addRTFDToPasteboard is something internal from Apple.

--

I not calling addRTFDToPasteboard. (maybe I should be?) All I doing is opening 
an pdf in the pdfViewMBS using;

dim doc as PDFDocumentMBS = new PDFDocumentMBS(mfile)
dView=new MyPDFView(0,0,me.Width,me.Height)
dView.document=doc
Return dView

It works fine, with everything but using an right mouse click witch presents 
the error. I also noticed that this only happens if the right click happens on 
Text within the pdf. If the right mouse click was on top of an picture it then 
shows the mouse menu.



>> I have added the NSExceptionMBS It still crashes the app when the view is 
>> right mouse clicking within the view. I get this any time an pdfKit view has 
>> been right clicked on the view, It seems to want to think its an pasteboard 
>> error. However there was no copy paste going on, just an simple right mouse 
>> click within the PDFView.
> 
> 
> NSException can only catch errors from plugin code.

--

Is there possible an way to trap the right mouse click not to trigger within an 
pdfViewMBS. I am only using it to view an document. I just do not want the 
application to crash on the end user if they do an right click within the view.

Thanks again,

Obleo beck

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to