[WASTE-list] WASTE 3.0d7 now a universal binary

Marco Piovanelli marco.piovanelli at pobox.com
Wed Apr 19 07:49:33 EDT 2006


Hi all,

After a longish hiatus, here's a new build of the WASTE 3.0 framework,
now delivered as a universal binary capable of running natively on
Intel-based Macintoshes.

<http://www.merzwaren.com/bin/waste/WASTE-evaluation-kit-30d7.dmg>

The included demo application (which is mostly just the old 2.1 demo)
was recompiled as a universal binary as well -- I replaced the old
CodeWarrior project with an Xcode 2.2 project.

This new build takes care of all endian issues when dealing with
proprietary, binary scrap formats like "WEst" and "WEru".

WEStreamRange(), when called with the 'utxt' selector, will keep
returning UTF-16 text in big-endian byte order, regardless of the
underlying platform, unless the weGetLittleEndian option is specified.
To obtain UTF-16 text in native byte order, you can use code like
this:

Handle utf16Text = NewHandle(0);

err = WEStreamRange(
kCurrentSelection,
kCurrentSelection,
kTypeUnicodeText,
TARGET_RT_LITTLE_ENDIAN ? weGetLittleEndian : 0,
utf16Text,
myWE);

WEPut() will now accept text in UTF-8, UTF-16BE
(kTextEncodingUnicodeDefault + kUnicodeUTF16BEFormat) and UTF-16LE
(kTextEncodingUnicodeDefault +
kUnicodeUTF16LEFormat), in addition to UTF-16 (with or without BOM).
If no byte order is explicitly specified in the text encoding parameter,
and no BOM is present, WEPut() will assume native byte order.


-- marco

--
It's not the data universe only, it's human conversation.
They want to turn it into a one-way flow that they have entirely
monetized. I look at the collective human mind as a kind of
ecosystem. They want to clear cut it. They want to go into the
rainforest of human thought and mow the thing down.



More information about the WASTE-list mailing list