Alright, I'm trying to make a sheet appear in my AppleScriptObjC app, based on a panel I've already designed in the 'Interface Builder' .xib file.
I've found a fantastic answer here, but it's for Objective-C, and I'm struggling to translate it into AppleScriptObjC.
Here's the code I've tried at the moment:
beginSheet_modalForWindow_modalDelegate_didEndSelector_contextInfo_(loadingWindow, mainWindow, me, missing value, missing value)
This just gives me the following error:
[AppDelegate titleRefresh:]: *** -[AppDelegate beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:]: unrecognized selector sent to object <AppDelegate @0x10323d4c0: OSAID(4)> (error -10000)
The original window is called "mainWindow", the panel to be used as a sheet is called "loadingWindow".
If anybody could help me out, that would be really appreciated!