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

Re: Resource for Cocoa Object Syntax in AS?


  • Subject: Re: Resource for Cocoa Object Syntax in AS?
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 12 Mar 2015 09:25:55 +1100

On 12 Mar 2015, at 6:31 am, Alex Hall <email@hidden> wrote:

What's the rule for multiple arguments to a Cocoa function (commas or no)?

Commas, although in practice you're limited in what functions you can use because of the limited range of types you can pass.

What about pointers, like when an initializer needs a pointer to an error variable (I'm trying to work with NSRegularExpression)?

set {theNSRegularExpression, theError} to current application's NSRegularExpression's regularExpressionWithPattern:"(?m)^(^[[a-z][A-Z][0-9]]+)" options:0 |error|:(reference)


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. :)

I thought you'd never ask ;-) 

Go here <http://www.macosxautomation.com/applescript/apps/everyday_book.html> for my book on the subject. And if you're feeling spendthrift, my editor at <http://www.macosxautomation.com/applescript/apps/explorer.html> makes it even easier, with things like logging and ASObjC code-completion. There's a 30-day trial period on the latter.

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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

References: 
 >Resource for Cocoa Object Syntax in AS? (From: Alex Hall <email@hidden>)

  • Prev by Date: Re: Yosemite and activate failures
  • Next by Date: Can I script to add a keyboard shortcut in System Prefs?
  • Previous by thread: Resource for Cocoa Object Syntax in AS?
  • Next by thread: Re: Resource for Cocoa Object Syntax in AS?
  • Index(es):
    • Date
    • Thread