• 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
Looking for help with modal window, please.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Looking for help with modal window, please.


  • Subject: Looking for help with modal window, please.
  • From: Brian Christmas <email@hidden>
  • Date: Sun, 26 Jul 2015 12:29:43 +1000

I’ve got two script objects as my main Application, 'AppDelegate', and ‘OddNSods’.

One window out of 6 is a ‘Your trial is over’ info window, called ‘elapsedWindow’, that contains a ‘Continue Trial’ button, and a ‘Quit’ button, only one of which shows at any time. 

I want to make this window modal, as I understand it will be centred, and stop operation of both scripts. I’d like to leave the main window open, but non-running.

My code for checking if the Trial Period is over, is in “OddsNSods’, and after the window is activated, and a text field filled, I’ver inserted the code…

set theApp to application "Mail Manager"
theApp's runModalForWindow:elapsedWindow


The ‘Continue Trial’ button calls this handler…

on checkForElapsedTrialRemove:sender
stopModal()
set my elapsedWindowDisplay to false
end checkForElapsedTrialRemove:



I’ve bound the window ‘elapsedWindow’ in both script objects.

Trouble is, it’s not working, and I can’t find any info on the net as to why. I suppose it’s the use of ‘theApp', but it’s all I could find… http://macscripter.net/viewtopic.php?id=34082

Any help please?

Regards

Santa


 _______________________________________________
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

  • Follow-Ups:
    • Re: Looking for help with modal window, please.
      • From: Shane Stanley <email@hidden>
  • Prev by Date: what's different about a list created from Array Controllers ArrangedObjects?
  • Next by Date: Re: Looking for help with modal window, please.
  • Previous by thread: what's different about a list created from Array Controllers ArrangedObjects?
  • Next by thread: Re: Looking for help with modal window, please.
  • Index(es):
    • Date
    • Thread