Dear List,
Is there a way to trigger sheet alerts from another class than the one that contained the original trigger? I don’t seem to succeed in this.
I have the following :
appdelegate.applescript
script Appdelegate
property parent “NSObject”
on pushme_(sender) – bound to button in main UI
tell current application’s Dialog to showSheet_(“My Message”)
end pushme_
end script
dialog.applescript
script Dialog
property parent “NSObject”
property mainWindow : missing value – bound to mainWindow with an NSObject
on showSheet_(theMessage)
// The code for making a sheet alert, using Myriad Helpers for this
end showSheet_
end script
This works perfectly with a pushme_ function in Dialog, but I get a standard modal dialog when I use the one Appdelegate (?)
Thanks,
Fred.