• 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
Re: Scripting implementation - accepting/returning ae records?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting implementation - accepting/returning ae records?


  • Subject: Re: Scripting implementation - accepting/returning ae records?
  • From: Don Briggs <email@hidden>
  • Date: Fri, 19 Apr 2002 09:03:14 -0700

On Thursday, April 18, 2002, at 08:51 PM, Jim Correia wrote:

>
> Is there a more complete source of documentation? The current scripting
> docs are somewhat spartan.
Check. Well, there's another source. There's an example of how to add
scripting support
to an existing Cocoa example. See
http://homepage.mac.com/donbriggs/FileSharing.html
and download
EZCocoaAppleScript.dmg.gz
>
> 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?
I think you've included one type I wouldn't!
You indicate that "... NSArray ... seems(s) to be there..." but I would
disagree.
See AppleScriptCocoaBadIdeas.dmg.gz at the same site.
It's an example project that shows how NSArray and NSDictionary
DON'T do what we might hope. (Don't do what I hoped, anyway -- sniff.)

>
> How do I return a record from a command handler or from a property
> handler (KVC method)?

See the example code in EZCocoaAppleScript.dmg.gz.

<plug>

SuiteModeler can be downloaded from the same site. In licensed mode,
it will emit 'naive' Objective-C files for each class in your suite,
including
accessors and command handlers -- just add your own "model logic".
There's also some support for object specifier methods.

</plug>

Even in demo mode, SuiteModeler can identify some "stump the experts"
problems that haven't been documented by Apple, to my knowledge.
(Back to the 'missing docs' theme.)

Regards,
Don
_______________________________________________
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.

  • Follow-Ups:
    • Re: Scripting implementation - accepting/returning ae records?
      • From: Jim Correia <email@hidden>
References: 
 >Scripting implementation - accepting/returning ae records? (From: Jim Correia <email@hidden>)

  • Prev by Date: ANN: CamelBones 0.2
  • Next by Date: Re: Setting environment variables for Project Builder
  • Previous by thread: Scripting implementation - accepting/returning ae records?
  • Next by thread: Re: Scripting implementation - accepting/returning ae records?
  • Index(es):
    • Date
    • Thread