• 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: Cocoa-JavaScript Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-JavaScript Application


  • Subject: Re: Cocoa-JavaScript Application
  • From: Deivy Petrescu <email@hidden>
  • Date: Fri, 18 Dec 2015 21:00:25 -0500

> On Dec 18, 2015, at 20:50 , Paul Scott <email@hidden> wrote:
>
>> On Dec 18, 2015, at 4:51 PM, Shane Stanley <email@hidden> wrote:
>>
>> The Cocoa-AppleScript template is just a convenience. You can start with a normal Cocoa app template, add AppleScriptObjC.framework, modify main.m so that -loadAppleScriptObjectiveCScripts is called before main returns, then add and connect a suitable AS app delegate class. The only Xcode support is that it compiles .applescript files and treats appropriate handlers and properties as IBActions and IBOutlets.
>
> Exactly. Without that support in Xcode, I can’t connect IBActions and IBOutlets.
>
>> I recall that someone built a JXA-based Cocoa app not long after it was released, so it can be done. They may have used an Objective-C app delegate to bootstrap things; I can't recall.
>
> I could use an Objective-C or AppleScriptObjC app delegate to bootstrap things, with some shifty tricks, but lacking Xcode integration I’d surely still have the problem of not being able to connect IBActions/Outlets to the JS methods/properties. Wouldn’t I?
>
> Of course, I make those connections programmatically after bootstrapping enough to get going, but that that’s what the UI should do for me. Heck, at that point I might as well stick with AS or ObjC.
>
> So close, and yet so far. I filed a new-feature bug report.
>
> Paul _______________________________________________

Paul,
David Sternberg (from Apple) posted a video that showed the creation of a Cocoa application on the fly with JSA.
There is a video that can be downloaded from 2014 Developers Conference.
I might have the video and the script somewhere.
If I find I will send it to you off the list


Deivy Petrescu
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


References: 
 >Re: Cocoa-JavaScript Application (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Cocoa-JavaScript Application
  • Next by Date: Re: AS Library Question
  • Previous by thread: Re: Cocoa-JavaScript Application
  • Next by thread: Stack Overflow
  • Index(es):
    • Date
    • Thread