Returning a custom data type from an AS command
Returning a custom data type from an AS command
- Subject: Returning a custom data type from an AS command
- From: Will Cosgrove <email@hidden>
- Date: Mon, 22 Mar 2004 21:08:35 -0800
Hi All,
I'm in the process of adding Applescript support to one of my
applications and I've run into a problem. I have a command in which I
want to return an array of custom class types. When I call this
function it returns the array, but when I try to access an item in the
array I end up getting back my application's object (!). For example
if I do this:
tell application "blah"
return customObjectNameProperty of item 1 of GetListCommand of
containerObject 1
end tell
Instead of getting item 1 of the array returned by the command
GetListCommand, the script gives me my application object. My question
is, how do I successfully specify the list being returned is my custom
objects? Does anyone have any experience using custom objects like
this?
Thanks!
Will
_______________________________________________
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.