Wiki source for sqInt


Show raw source

======**sqInt clipboardWriteFromAt(sqInt count, sqInt byteArrayIndex, sqInt startIndex)**======

**Parms**:
count number of bytes to write
byteArrayIndex oops data, address of start of data
startIndex offset to start write from
**return**: NONE, fake return of zero
**From**: Interpreter
**Why**:
**Responsibility**:

**MacIntosh**
//os-9/OSXCarbon//
clear the scrap, and write out byteArrayIndex+ startIndex bytes for the given count.

//Cocoa://
NSPasteboard
[[NSString alloc] initWithBytes: byteArrayIndex length:(NSUInteger)count encoding: NSUTF8StringEncoding];

**iPhone**
UIPasteboard
[[NSString alloc] initWithBytes: byteArrayIndex length:(NSUInteger)count encoding: NSUTF8StringEncoding];

**Unix**
copy the data to the x11 clipboard

**Windows**
lots of work, first figure out how many lone CRs we have versus CRLF, then insert extra LF
then assume we've a valid UTF8 and convert it to unicode then clear existing clipboard and toss our bytes onto it.

**BUGS**
startIndex is always zero, why have it?
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki