// Copyright 2014 The Flutter Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.importCocoaimportFlutterMacOS/**The window that is automatically generated when `flutter create --target=macos`on a project. `MainFlutterWindow` uses a FlutterViewController as it's contentview controller by default.*/classMainFlutterWindow:NSWindow{overridefuncawakeFromNib(){letwindowFrame=self.frameletstoryboard=NSStoryboard(name:NSStoryboard.Name("Main"),bundle:Bundle.main)// `flutter create --target=macos` uses this class (`self`) as an entrypoint// for drawing on a surface. The line below intercepts that and uses// the storyboard from `Main.storyboard`.self.contentViewController=storyboard.instantiateController(withIdentifier:"MainViewController")as!NSViewControllerself.setFrame(windowFrame,display:true)super.awakeFromNib()}}