main

mattermost/focalboard

Last updated at: 29/12/2023 09:40

AutoSaveWindowController.swift

TLDR

This file contains the AutoSaveWindowController class, which is a subclass of NSWindowController. It overrides the windowDidLoad() method to perform initialization tasks and sets the windowFrameAutosaveName.

Classes

AutoSaveWindowController

The AutoSaveWindowController class is a subclass of NSWindowController. It handles the auto-saving functionality for a window. It overrides the windowDidLoad() method to perform initialization tasks. In this case, it sets the windowFrameAutosaveName to "AutoSaveWindow".

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.

import Cocoa

class AutoSaveWindowController: NSWindowController {

	override func windowDidLoad() {
		super.windowDidLoad()

		// Implement this method to handle any initialization after your window controller's window has been loaded from its nib file.
		self.windowFrameAutosaveName = NSWindow.FrameAutosaveName("AutoSaveWindow")
	}
}