2021年3月4日星期四

Xcode Swift MacOs - Hide/Show windows without a StoryBoard and without ViewController

Hi all, I'm making an App on my MACOS computer by using Swift 3

Close a window is ezy [in this way] from my main window called w by clicking button and calling the function closeotherw()

@IBOutlet var w: NSWindow!  @IBOutlet var otherw: NSWindow!      @IBOutlet var otherw: NSPanel!      @IBAction func closeotherw(_ sender: AnyObject) {          otherw.close()      }  

But how to reopen-it [otherwin]?

I also tryed winz1.ihHidden = truebut with no results.

I don't have a StoryBoard and I don't have too a ViewController.

I'm doing all from AppDelegate.

DAAAAAAAAAAAAAAANK U!

https://stackoverflow.com/questions/66486141/xcode-swift-macos-hide-show-windows-without-a-storyboard-and-without-viewcontr March 05, 2021 at 11:00AM

没有评论:

发表评论