Tips on NSApp’s ModalForWindow, NSAlert’s ModalForWindow, and ModalSession [closed]
The question is the answer. I’m just posting this to close it out. Sorry for twisting the stackoverflow format.
The question is the answer. I’m just posting this to close it out. Sorry for twisting the stackoverflow format.
Check your view hierarchy in the interface builder it might be that the textField sits on top of everything and Xcode is trying to set the constraints for it. Otherwise, perhaps add some screenshots of what is going on in your storyboards. Have you tried setting the textField’s in question width and height from = … Read more
beginSheetModalForWindow:modalDelegate is deprecated in OS X 10.10 Yosemite. Swift 2 func dialogOKCancel(question: String, text: String) -> Bool { let alert: NSAlert = NSAlert() alert.messageText = question alert.informativeText = text alert.alertStyle = NSAlertStyle.WarningAlertStyle alert.addButtonWithTitle(“OK”) alert.addButtonWithTitle(“Cancel”) let res = alert.runModal() if res == NSAlertFirstButtonReturn { return true } return false } let answer = dialogOKCancel(“Ok?”, text: “Choose … Read more