1// Copyright (c) 2010 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#import "chrome/browser/ui/cocoa/applescript/element_applescript.h" 6 7@implementation ElementAppleScript 8 9@synthesize uniqueID = uniqueID_; 10@synthesize container = container_; 11@synthesize containerProperty = containerProperty_; 12 13// calling objectSpecifier asks an object to return an object specifier 14// record referring to itself. You must call setContainer:property: before 15// you can call this method. 16- (NSScriptObjectSpecifier*)objectSpecifier { 17 return [[NSUniqueIDSpecifier allocWithZone:[self zone]] 18 initWithContainerClassDescription: 19 (NSScriptClassDescription*)[[self container] classDescription] 20 containerSpecifier: 21 [[self container] objectSpecifier] 22 key:[self containerProperty] 23 uniqueID:[self uniqueID]]; 24} 25 26- (void)setContainer:(id)value property:(NSString*)property { 27 [self setContainer:value]; 28 [self setContainerProperty:property]; 29} 30 31- (void)dealloc { 32 [uniqueID_ release]; 33 [container_ release]; 34 [containerProperty_ release]; 35 [super dealloc]; 36} 37 38@end 39