Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] Odd error with an pdfViewMBS of pdfkit (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] [ANN] 13.0pr7
Next thread: [MBS] Java plugin


[MBS] QLPreviewViewMBS   -   Garth Hjelte
  [MBS] Odd error with an pdfViewMBS of pdfkit   -   Obleo Beck
   Re: [MBS] Odd error with an pdfViewMBS of pdfkit   -   Obleo Beck
    Re: [MBS] Odd error with an pdfViewMBS of pdfkit   -   fqd
   Re: [MBS] Odd error with an pdfViewMBS of pdfkit   -   Christian Schmitz

[MBS] Odd error with an pdfViewMBS of pdfkit
Date: 15.01.13 00:13 (Mon, 14 Jan 2013 17:13:37 -0600)
From: Obleo Beck
Hello,

I getting an odd error when right clicking in an PDFViewMBS with PDFKit.

Tested on both OSX 10.7.5 and 10.8.2
Real Studio Version 2012 R1.2 Cocoa Build.

The error presents the following error;

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)

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.

I stumped on how to fix this.

Any help here is much appreciated.

Cheers,

Obleo Beck
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Odd error with an pdfViewMBS of pdfkit
Date: 15.01.13 16:29 (Tue, 15 Jan 2013 09:29:43 -0600)
From: Obleo Beck
Hello,


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

>
> Am 15.01.2013 um 00:13 schrieb Obleo Beck <obeck@me.com>:
>
>> 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.

Re: [MBS] Odd error with an pdfViewMBS of pdfkit
Date: 27.09.13 13:39 (Fri, 27 Sep 2013 14:39:34 +0200)
From: fqd

I'm using RS 2012r2.1 and MBS 13.1 in that context ( displaying a pdf )
and don't get this error.

Wich plugins version are you using ?

A+,
Fred

Le 15/01/2013 16:29, Obleo Beck a écrit :
> Hello,
>
> On Jan 15, 2013, at 1:37 AM, Christian Schmitz wrote:
>
>> Am 15.01.2013 um 00:13 schrieb Obleo Beck <obeck@me.com>:
>>
>>> 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 address removed>
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Odd error with an pdfViewMBS of pdfkit
Date: 15.01.13 08:37 (Tue, 15 Jan 2013 08:37:39 +0100)
From: Christian Schmitz

Am 15.01.2013 um 00:13 schrieb Obleo Beck <obeck@me.com>:

> 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 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.

Greetings
Christian