🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #349

Re: AutoComplete? ESTK CS4

#349
From: Olav_Kvern
Date: Thu, 26 Mar 2009 18:12
11 lines
1656 bytes
Steven F. Bryant wrote: "But In JavaScript The Language Is Too Loose To Accurately Predict The Applicable Properties."

It's not a matter of strong vs. loose typing. It's a matter of resources for writing the ESTK. Autocomplete doesn't need to know about the type of the object you're entering, only what the DOM says its properties/methods are.

For whatever it's worth, I get pretty good autocompletion on things like enumerations in the CS4 ESTK, but it guesses poorly or not at all on most other things.

I think a lot of it has to do with performance and the size of the DOM--you'll note that you'll get faster/better responses for basic JavaScript terms or for terms from smaller object models than you do for InDesign (with its monster DOM). I also note that it works better on faster machines. It's clearly dependent on the time it takes to look up a specific object name in the OMV XML file.

Thanks,

Ole
Technical Details
Message-ID: <59b8691a.3@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossing
References: <C2C44AE0153F1F688BACA25769833D21@in.webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,7d6bb3c01b4295b
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Olav_Kvern@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: AutoComplete? ESTK CS4
Message-ID: <59b8691a.3@webcrossing.la2eafNXanI>
Date: Thu, 26 Mar 2009 11:12:54 -0700
References: <C2C44AE0153F1F688BACA25769833D21@in.webcrossing.la2eafNXanI>
Lines: 22
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit