Revision [320]

This is an old revision of clipboardSize made by JohnMcIntosh on 2008-10-22 02:06:11.

 

sqInt clipboardSize(void)


Parms: NONE
return: size of clipboard item in bytes
From: Interpreter
Why:
Get size of clipboard item

Responsibility:
We get size of clipboard item so we can see if we can load it, if it's too big, then the primitive fails.
After this call we invoke clipboardReadIntoAt to read a textual item

MacIntosh
os-9/OSXCarbon
There is an extended clipboard plugin build for Sophie that lets you access items other than text.

Cocoa:
TBD

iPhone
Has no external clipboard

Unix
Supported, gets data from X clipboard

Windows
Oddly get CF_UNICODETEXT, convert to CP_UTF8 and count characters, toss the extra lf from a crlf pair

BUGS
Well the issue of CR for textual data versus CRLF rears up. Really I think any removal of data from the clipboard should be done in the image
versus being buried in the primitive code

There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki