I figured out how to bring up the assistant editor and connect the NSButton to my source code that way. After I drag the button to the File's owner's implementation, XCode asks me to name the NSButton *. I do this. After this I can connect the NSButton * to the action I want - stopModalDialog. BUT the button is not highlighted and even though it's attributes are set to active, etc. it isn't highlighted and it won't respond to the message [theButton highlight: YES];
Also I'm getting all kinds of error messages from Interface builder like "Auto Layout Localization Localization - Views without layout constraints may clip their content or overlap other views." and "Incorrect Intrinsic size - NSTextField's height does not match its intrinsic content size use "Size to Fit Content" to correct" I can add Constraints to this Panel and this will suppress these errors but it will move the UI objects, resize the window or add autoresizing. I don't need any of this and it's a real hassle to deal with it.