我尝试在非基于文档的应用程序中使用Swift实现NSWindowRestoration协议(protocol)。但是,方法restoreWindowWithIdentifier永远不会在应用程序启动时被调用。谁能指出我的错误?这是代码的一个子集(可以正常编译和运行):classAppDelegate:NSObject,NSApplicationDelegate,NSWindowRestoration{varwindowController:MyWindowController?funcapplicationDidFinishLaunching(aNotification:NSNotif