Re: TrollTech releases QT for Mac under GPL
Re: TrollTech releases QT for Mac under GPL
- Subject: Re: TrollTech releases QT for Mac under GPL
- From: publiclook <email@hidden>
- Date: Sat, 21 Jun 2003 23:12:04 -0400
What concerns me primarily is the idea of moving data among
architectures. I have no problem with the idea of a single source base
running correctly on multiple systems, but do you really get reliable
datacomm without any extra effort? Or is that extra effort just part
of "using Cocoa right?"
If your data was stored in objects like NSData, there were no issues.
Both the binary and plist (-description) formats for data are endian
neutral. They were also 7-bit ASCII neutral and could be sent safely
over RS232 or non-binary FTP. If any endian conversions were taking
place, they were handles automatically.
If your data was not encapsulated in objects, the first question was
why not ? Assuming you had a good reason (like backward binary
compatibility or compatibility with a "standard") for not encapsulating
your data, NeXT provide optimized macros that you could use to convert
data. Thanks to language constructs like @def, even complex structures
and unions could be converted easily. Interestingly, the REAL problem
was with non-standard binary floating point formats. There is IEEE,
then there is Intel, then there is this common but weird 82 bit format,
etc. Your best bet is to never write floating point data in a machine
native binary format.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.