Article View: adobe.indesign.sdk
Article #524IDCS4 Both platforms -- PMString declarations in the porting guide
From: John_Darnell
Date: Thu, 15 Jan 2009 16:51
Date: Thu, 15 Jan 2009 16:51
14 lines
1705 bytes
1705 bytes
I am preparing to convert CS3 plugins to CS4 and have come across this example in the porting guide (page 45 if you want to see it in the original). The text reads something like this:
CS3 Usage:
PMString("SomeString", -1, PMString::kNoTranslate);
CS4 Usage:
PMString("Root", PMString::kUnknownEncoding);
I understand that the middle argument has been removed (it had to do with some variation on scripting fonts, if I am remembering correctly and was almost always "-1"--a good move on Adobe's part IMHO) and I understand that instead of indicating that the script is a NoTranslate script, Adobe wants us to use kUnknownEncoding. I'm not sure I understand the full reasoning there, but what I actually have to do is understandable enough.
What I cannot figure out is the information they are trying to convey to us by calling the string in the CS3 usage "SomeString" and the string in the CS4 usage "Root." Obviously there is some subtle something being communicated, but I can't figure out what it is. Anyone else have a clue?
TIA,
John
Technical Details
Message-ID:
<59b785bf.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f63e9,127266caeb7da69e,start X-Google-Attributes: gidf63e9,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: John_Darnell@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.indesign.sdk Subject: IDCS4 Both platforms -- PMString declarations in the porting guide Message-ID: <59b785bf.-1@webcrossing.la2eafNXanI> Date: Thu, 15 Jan 2009 08:51:43 -0800 Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit