Scripting implementation - accepting/returning ae records?
Scripting implementation - accepting/returning ae records?
- Subject: Scripting implementation - accepting/returning ae records?
- From: Jim Correia <email@hidden>
- Date: Thu, 18 Apr 2002 23:51:51 -0400
First a couple of meta-questions.
Is this list more appropriate than applescript-implementors for appkit
scripting questions?
Is there a more complete source of documentation? The current scripting
docs are somewhat spartan.
Now the real (first) questions:
What cocoa data types are "bridged" to applescript data types?
NSNumber<foo>, NSArray, NSString seem to be. Is there a complete list
somewhere that I've overlooked?
How do I return a record from a command handler or from a property handler
(KVC method)?
If I were writing to the metal, I'd just build up an AERecord, stuff it in
the direct object of the reply, and be done with it. How do I return a
record from Cocoa? In a simple test case returning an NSDictionary (even
when they keys were NSNumber (unsigned longs)) returned a null answer with
no errors).
How do I accept a record? (I have done no experimentation here yet - I see
that the create command accepts a record for the property data and
declares it as NSDictionary, but the implementation is opaque and
automatically calls the KVC methods. I know what the record looks like
going in, but I don't know what the dictionary looks like after Cocoa has
massaged it.)
Thanks,
Jim
_______________________________________________
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.