Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 22227 invoked from network); 25 Jun 2010 12:41:37 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Jun 2010 12:41:37 -0000 Received: (qmail 26583 invoked by uid 500); 25 Jun 2010 12:41:37 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 26452 invoked by uid 500); 25 Jun 2010 12:41:34 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 26444 invoked by uid 99); 25 Jun 2010 12:41:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jun 2010 12:41:33 +0000 X-ASF-Spam-Status: No, hits=-0.4 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gkbrown@mac.com designates 17.148.16.98 as permitted sender) Received: from [17.148.16.98] (HELO asmtpout023.mac.com) (17.148.16.98) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jun 2010 12:41:25 +0000 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from [192.168.1.10] (pool-98-110-173-176.bstnma.fios.verizon.net [98.110.173.176]) by asmtp023.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0L4K00AKFLWDD360@asmtp023.mac.com> for user@pivot.apache.org; Fri, 25 Jun 2010 05:41:02 -0700 (PDT) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1004200000 definitions=main-1006250043 X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5,1.2.40,4.0.166 definitions=2010-06-25_06:2010-02-06,2010-06-25,2010-06-24 signatures=0 Subject: Re: referencing the object behind the wtkx From: Greg Brown In-reply-to: <20100624215757.X62183@p3c0.erirefr.arg> Date: Fri, 25 Jun 2010 08:41:00 -0400 Message-id: <13175C57-2350-4596-9358-5E0BAECAA671@mac.com> References: <20100624215757.X62183@p3c0.erirefr.arg> To: user@pivot.apache.org X-Mailer: Apple Mail (2.1078) > For example, consider a class named Dog with a method named bark. Let dog.wtkx be a WTKX file whose root element is the Dog class. Can I call the bark method of "this" from a script in dog.wtkx? Yes, you can do this. For example, you could give the Dog instance an ID and then call it from script: dog.bark(); Though generally you would probably do this in an event handler, not inline as the file is being processed.