🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.indesign.sdk
Article #4352

Scripting and UID-Based Object definition

#4352
From: Jim_Birkenseer
Date: Tue, 22 Jun 2004 19:14
24 lines
2332 bytes
Hi Folks,

In my plug-in, I want to add a script object to the application (IWorkspace, I guess). It needs to behave like a document's "Label" property--holding key/value pairs. I'm thinking all I have to do is create this script object in my plugin and just use the default IScript GetTag() and SetTag() methods to work with the data. My property is only going to be used as a buffer for passing data between my plug-in and scripts that communicate with my plugin, so it is not going to be persistent between application launches.

I was looking the at the Recipes section of the Making Your Plug-In Scriptable guide, and I don't understand the term "UID-Based Object." My lack of understanding is partially because I'm a rookie at C++ and the ID SDK, and partially because I am easily confused! ;-) Hopefully someone here can give me some answers that a rookie can understand.

In the Recipes section of the guide there are recepies for four different scenariors:

	
* If it is a UID-based object
	
* If it's NOT a UID-Based Object and if the object has a boss
	
* If it's NOT a UID-Based Object and if the Object does NOT have a Boss
	
* If it is a Preference object

I read through the A Note On Scripting Object Inheritance on page 34 of the guide, and I still don't really understand when to use a UID-Based object and an non-UID-Based object. Can someone please describe the concepts behind each of the above? (I sort of understand the Preference object since it is used in the Custom Preference sample plug-in, but I don't understand the others.)

Thanks in advance for any insight!!

-- Jim

"There are only 10 kinds of people in the world: those that know binary numbers and those that don't."
Technical Details
Message-ID: <3bb4b931.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f63e9,1c60bd91e9dbc28a,start
X-Google-Attributes: gidf63e9,public
From: Jim_Birkenseer@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.indesign.sdk
Subject: Scripting and UID-Based Object definition
Message-ID: <3bb4b931.-1@webx.la2eafNXanI>
Date: Tue, 22 Jun 2004 12:14:57 -0700
Lines: 39
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit