AppleScript and ToManyRelationships
AppleScript and ToManyRelationships
- Subject: AppleScript and ToManyRelationships
- From: "Shoaib" <email@hidden>
- Date: Tue, 30 Dec 2003 03:05:02 GMT
I have a model class in my Cocoa Application that contains two attributes
(called name and detail) and an array of NSStrings (called values). In the
MyApp.scriptSuite file, I have the class declared as follows:
...
"DataItem" =
{
"Superclass" = "NSCoreSuite.AbstractObject";
"AppleEventCode" = "mycl";
"Attributes" =
{
"name" =
{
"AppleEventCode" = "pnam";
"ReadOnly" = "YES";
"Type" = "NSString";
};
"detail" =
{
"AppleEventCode" = "pdtl";
"ReadOnly" = "YES";
"Type" = "NSString";
};
};
"ToManyRelationships" =
{
"values" =
{
"AppleEventCode" = "pfvl";
"ReadOnly" = "YES";
"Type" = "NSString";
};
};
};
...
Since the type of a "value" in values array is NSString, my question is how
can I specify an AppleScript class for value so I can do the following with
applescript:
tell application "MyApp"
set first_value to value 1 of data item "..."
end tell
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.