O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSScriptCommandDescription — Mac OS X 10.0

Synopsis

This class represents a scripting command within a Cocoa application, framework, or bundle. The job of this class is to provide information about a class and method, including all argument and return types, that is used to represent a scripting command.

image with no caption

@interface NSScriptCommandDescription : NSObject <NSCoding>
                                  // Initializers
   - (id)initWithSuiteName:(NSString *)suiteName 
                                 commandName:(NSString *)commandName
                                 dictionary:(NSDictionary *)commandDefDict;
                                  // Instance Methods
   - (unsigned long)appleEventClassCode;
   - (unsigned long)appleEventCode;
   - (unsigned long)appleEventCodeForArgumentWithName:(NSString *)argName;
   - (unsigned long)appleEventCodeForReturnType;
   - (NSArray *)argumentNames;
   - (NSString *)commandClassName;
   - (NSString *)commandName;
   - (NSScriptCommand *)createCommandInstance;
   - (NSScriptCommand *)createCommandInstanceWithZone:(NSZone *)zone;
   - (BOOL)isOptionalArgumentWithName:(NSString *)argName;
   - (NSString *)returnType;
   - (NSString *)suiteName;
   - (NSString *)typeForArgumentWithName:(NSString *)argName;
                                  // Methods Implementing NSCoding
   - (void)encodeWithCoder:(NSCoder *)aCoder;
   - (id)initWithCoder:(NSCoder *)aDecoder;

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required