View Issue Details

IDProjectCategoryView StatusLast Update
0034960LazarusLCLpublic2019-07-09 13:30
ReporterDavidAssigned ToDmitry Boyarintsev 
Status resolvedResolutionfixed 
PlatformMacOSMacOSOS VersionSierra
Product Version2.0RC3Product Build60228 
Target VersionFixed in Version 
Summary0034960: Cocoa unable to paste image when it was copied in another app
In Cocoa, when the clipboard contains an image copied from another application, the normal questions about "do you have an image" are always answered false.

It seems that Cocoa offers image formats (from its clipboard) that Lazarus either cannot handle or does not recognise : public.html; Apple HTML pasteboard type; public.tiff; NeXT TIFF v4.0 pasteboard type. My attempts to force a load anyway seemed to end in tears ....
Carbon works fine. And an internally copied picture (reported as being image/bmp is identified as an image) works fine.

Steps To ReproduceRun up the attached demo, build with fixes or trunk, copy an image from a webpage and then go back to the app, click the info button. I expect you will see HasPictureFormat; FindPictureFormatID; HasFormat(CF_PICTURE) - return false, 0 and false. But image formats are listed as available, just not ones Lazarus knows about. I think ...

And you cannot paste that picture with the paste button.
Additional Information
Discussed here,44053.msg309289.html#msg309289

superficially, this sounds a bit like 0034840 but it is quite unrelated.
TagsNo tags attached.
Fixed in Revision61472
Attached Files



2019-01-27 23:50

reporter (107,326 bytes)

Dmitry Boyarintsev

2019-06-24 23:29

developer   ~0116909

please test and close if ok


2019-07-09 13:30

reporter   ~0117120

sorry, will not be able to test for some time. Am traveling for several months and don't have my Mac with me.

Issue History

Date Modified Username Field Change
2019-01-27 23:50 David New Issue
2019-01-27 23:50 David File Added:
2019-06-24 23:29 Dmitry Boyarintsev Assigned To => Dmitry Boyarintsev
2019-06-24 23:29 Dmitry Boyarintsev Status new => resolved
2019-06-24 23:29 Dmitry Boyarintsev Resolution open => fixed
2019-06-24 23:29 Dmitry Boyarintsev Fixed in Revision => 61472
2019-06-24 23:29 Dmitry Boyarintsev LazTarget => -
2019-06-24 23:29 Dmitry Boyarintsev Widgetset Cocoa => Cocoa
2019-06-24 23:29 Dmitry Boyarintsev Note Added: 0116909
2019-07-09 13:30 David Note Added: 0117120