This seems like a newbie question but I've been struggling with it for a while now. I have some code initialisation that I'd like to run before my app launches.
At the moment I have set up my AppDelegate as follows:
@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate
{
func applicationDidFinishLaunching(aNotification: NSNotification)
{
runMyInitCode()
}
}
My problem is that all my object code runs before this. Where is the best place to call initialisation methods before anything else runs?