• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: TrollTech releases QT for Mac under GPL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Re: TrollTech releases QT for Mac under GPL (From: Greg Weston <email@hidden>)

  • Prev by Date: Re: TrollTech releases QT for Mac under GPL
  • Next by Date: Re: NSTableView, PopUpButtons, and controlling selection
  • Previous by thread: Re: TrollTech releases QT for Mac under GPL
  • Next by thread: Re: TrollTech releases QT for Mac under GPL
  • Index(es):
    • Date
    • Thread