New window in Xcode (to replace Display Dialog or Alert)

Hey Everyone,

I’m looking to add a handler to pop up a window when you click the “help” button I have created.

so far I have

property helpButton : missing value

for the window

and

on helpButtonClick_(sender)

for the button

but I’m not sure what code in AppleScript would actually allow me to just open a window other than Display Dialog, but I want to be able to edit the font to match my main window.

In Interface Builder you could just make a new window and design it how you want. If you don’t want the new window to show when your app launches, just uncheck the checkbox for “visible at launch” in the attributes inspector for your new window. Then connect the referencing outlet of the window to a property in your AppDelegate script. something like:


property helpWindow : missing value

Then all you need to do is set up your button to call the handler in IB add something like this inside your handler:


on helpButtonClick_(sender)

tell me to activate
helpWindow's makeKeyAndOrderFront_(me)

end helpButtonClick_

Thank you! I finally figured it out but what you wrote is almost exactly what I did.