Cocoa does not report on clipboard contents correctly.
Original Reporter info from Mantis: dbannon @davidbannon
-
Reporter name: David
Original Reporter info from Mantis: dbannon @davidbannon
- Reporter name: David
Description:
The function ClipboardGetFormats() is intended to describe whats currently in the clipboard. It should return with a list if Format IDs and a Count of their number. Applications (and wrapper functions) depend on this to determine if the clipboard has content suitable to its needs.
However, line #254 of cocoawinapi.inc
function TCocoaWidgetSet.ClipboardGetFormats(ClipboardType: TClipboardType;
var Count: integer; var List: PClipboardFormat): boolean;
does not alter Count and appears to put rubbish in the list.
Steps to reproduce:
See attached demo project.
It calls ClipboardGetFormats() and displays what is returned. Returns correct info under Linux and Carbon, not under Cocoa.
Mantis conversion info:
- Mantis ID: 34121
- OS: OSX
- OS Build: Sierra
- Platform: Mac
- Version: 1.8.5 (SVN)
- Fixed in revision: 58695 (#aa9cfe7f)