despite no change to my application
programmatically trigering autosave for the window's frame and content size only works usualy once,
I tried differant combination like moving the window around and then cloisng it manualy and yet I still get the same result
I then have to make a new autosave name and then sometimes it works and sometimes it doesn't here's my code
view.window?.contentMinSize = NSSize(width: 310, height: 180) //Sets the view window minimum size.
view.window?.setContentSize(NSSize(width: 510, height: 233)) //Sets the view window normal size.
view.window?.isRestorable = true
view.window?.setFrameUsingName(NSWindow.FrameAutosaveName(rawValue: "autosaveformyapp"))
view.window?.titleVisibility = .visible
view.window?.titlebarAppearsTransparent = true
view.window?.hasShadow = true
view.window?.makeKeyAndOrderFront(nil)
view.window?.initialFirstResponder = view
update: I also tried to place the auto save line at differant place like before setting the window size but same result of it only working 1 time and then not working anymore