• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AppleScript and ToManyRelationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Prev by Date: Re: EXC_BAD_ACCESS with NSDate?
  • Next by Date: Making Localizable Help Folder with Xcode
  • Previous by thread: [ANN] Mulle kybernetiK - Optimizing Objective-C code - Articles #3.1 + #9 online
  • Next by thread: Making Localizable Help Folder with Xcode
  • Index(es):
    • Date
    • Thread