> ... > + // script returned an AppleScript result > + if ((typeUnicodeText == [returnDescriptor descriptorType]) || > + (typeUTF16ExternalRepresentation > + == [returnDescriptor descriptorType]) || > + (typeUTF8Text == [returnDescriptor descriptorType]) || > + (typeCString == [returnDescriptor descriptorType])) > + { > + desc = [returnDescriptor coerceToDescriptorType: > typeUTF8Text]; > + if (desc) > + *result = build_string([[desc stringValue] UTF8String]); > + } > + else > + { > + /* use typeUTF16ExternalRepresentation? */
I don't entirely understand this part. "typeUTF16ExternalRepresentation" is above. What is "else" covering here? Also, since we're always coercing to typeUTF8Text, why not do it before the if? ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Emacs-app-dev- mailing list Emacs-app-dev-@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emacs-app-dev-