• 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
Resource for Cocoa Object Syntax in AS?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Resource for Cocoa Object Syntax in AS?


  • Subject: Resource for Cocoa Object Syntax in AS?
  • From: Alex Hall <email@hidden>
  • Date: Wed, 11 Mar 2015 15:31:22 -0400

How do you all know how to do all this Cocoa syntax? Is there a document I'm missing? I've found the release notes that tell you how to include libraries and that you *can* use Cocoa objects, but nothing beyond that. I know ObjC pretty well, but how do you know to go from
NSString* str=[[NSString alloc] initWithFormat:@"Hello World"];
to
set str to current application's NSString's alloc()'s initWithFormat:"Hello World"
What's the rule for multiple arguments to a Cocoa function (commas or no)? What about pointers, like when an initializer needs a pointer to an error variable (I'm trying to work with NSRegularExpression)? I'll take specific answers if anyone happens to know them, but what I'm really after is a resource I can use to "translate" between ObjC and AppleScript so I can know the whole story, and so I can stop bugging you all every time I'm trying to work with some new part of the Cocoa frameworks. :) Thanks, as always, for any pointers or links.

--
Have a great day,
Alex Hall
email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Resource for Cocoa Object Syntax in AS?
      • From: Alex Zavatone <email@hidden>
    • Re: Resource for Cocoa Object Syntax in AS?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Throwing Errors in Functions?
  • Next by Date: Re: Yosemite and activate failures
  • Previous by thread: Re: Yosemite and activate failures
  • Next by thread: Re: Resource for Cocoa Object Syntax in AS?
  • Index(es):
    • Date
    • Thread