site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com Message: 1 Date: Mon, 26 Mar 2007 21:52:51 +0100 From: Thomas Tempelmann <tt@tempel.org> Subject: Problems with creating strings for a SDPServiceRecord using plists To: "bluetooth-dev@lists.apple.com" <bluetooth-dev@lists.apple.com> Message-ID: <C22DF133.391F%tt@tempel.org> Content-Type: text/plain; charset="US-ASCII" I believe I've found two bugs with the plist-to-SDP translation. Anyways, here's what I found, in short: Ron Wagner _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.a... I had already written quite a long article about this but then lost it all due to a bug in MS Entourage. When I tried to invoke the "feedback" page for this product, I got an empty page. Go figure... 1. Boolean entries should be translated into records of type "Boolean", but they instead they get stored as type "integer". 2. Even worse, I cannot seem to store non-textual bytes (e.g. byte sequences containing 0x00 etc.) as strings. This is even a bigger flaw as I cannot work around this other than doing it in code. Or does someone know how I would store a string with, say, 40 bytes, using the plist? To store non-textual bytes, try using the "Data" data type in your plist. If you have trouble creating the plist in Property List Editor you can write it out programmatically by putting your data into a CFData, then the CFData into a CFArray or CFDictionary, ... http://developer.apple.com/documentation/CoreFoundation/Conceptual/ CFPropertyLists/index.html This email sent to site_archiver@lists.apple.com