Re: Looking for help with modal window, please.
Re: Looking for help with modal window, please.
- Subject: Re: Looking for help with modal window, please.
- From: Shane Stanley <email@hidden>
- Date: Sun, 26 Jul 2015 13:29:33 +1000
On 26 Jul 2015, at 12:29 pm, Brian Christmas <email@hidden> wrote:
>
> I can’t find any info on the net as to why.
Did you look at any of the Cocoa examples? Because a Google search on runModalForWindow turns up the answer in seconds.
> I suppose it’s the use of ‘theApp', but it’s all I could find… http://macscripter.net/viewtopic.php?id=34082
Your guess about where the problem lies is good, but you might have done better to look closer to home:
> You can get a reference to the application through NSApplication’s class method sharedApplication. However, there is a shortcut in the form of an enum, NSApp.
> Not[e] the use of current application's NSApp to address the application
> You can address the application using the special shortcut enumeration NSApp
> you can refer to the application using the shortcut NSApp
> Your script has one instance of the NSApplication class, which is the running application. You can refer to it by a special global variable, NSApp, preceded of course by current application's
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden