Re: Scripting implementation - accepting/returning ae records?
Re: Scripting implementation - accepting/returning ae records?
- Subject: Re: Scripting implementation - accepting/returning ae records?
- From: Brian Webster <email@hidden>
- Date: Fri, 19 Apr 2002 10:05:51 -0500
On Friday, April 19, 2002, at 09:29 AM, cocoa-dev-
email@hidden wrote:
First a couple of meta-questions.
Is this list more appropriate than applescript-implementors for appkit
scripting questions?
I'd vote yes on this one. Most of the traffic on
applescript-implementors is usually Carbon-based. Posting Cocoa
specific questions there would be perfectly on-topic, but you're
more likely to get a response from this list.
Is there a more complete source of documentation? The current scripting
docs are somewhat spartan.
http://www.stepwise.com/Articles/Editorial/2002-04-01.01.html
Look under the Documentation subheader. ;-)
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?
There's no concrete documented list of bridged types. NSNumber,
NSDate, NSString, NSArray, and NSData (I think) are all the ones
that I know of. Basically all the property list classes except
for NSDictionary.
How do I return a record from a command handler or from a
property handler
(KVC method)?
This isn't possible with the current implementation (same thing
for incoming records), although the guys at Omni have written
some stuff that delves into the private API to handle this. You
can download the source for OmniFoundation and take a look at it.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.