Adding a new window to an existing project.


How do I add a new window and make the appropriate connections so that when I click a button, the first window closes and opens the other in applescript-objc (xcode 9.2). And vice versa? I’d also like to run my scripts separately for MainMenu1.xib and MainMenu2.xib.

Model: MacbookPro
AppleScript: 2.10 (194)
Browser: Safari 537.36 OPR/51.0.2830.55
Operating System: Mac OS X (10.13 Developer Beta 3)

In most cases it’s easier to put both windows in the same .xib file. You close one using orderOut: and show the other using orderFront: or makeKeyAndOrderFront:.

OMG! You’re right Shane. It’s much easier to put both windows in the same .xib. Thank you so much. :smiley: