View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0034960||Lazarus||LCL||public||2019-01-27 23:50||2019-07-09 13:30|
|Reporter||David||Assigned To||Dmitry Boyarintsev|
|Product Version||2.0RC3||Product Build||60228|
|Target Version||Fixed in Version|
|Summary||0034960: 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 Reproduce||Run 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.
Discussed here https://forum.lazarus.freepascal.org/index.php/topic,44053.msg309289.html#msg309289
superficially, this sounds a bit like 0034840 but it is quite unrelated.
|Tags||No tags attached.|
|Fixed in Revision||61472|
CocoaImagePaste.zip (107,326 bytes)
||please test and close if ok|
||sorry, will not be able to test for some time. Am traveling for several months and don't have my Mac with me.|
|2019-01-27 23:50||David||New Issue|
|2019-01-27 23:50||David||File Added: CocoaImagePaste.zip|
|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|