-
-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable closing ⓧ button for text window #183
Comments
Varsapptitle="YOUR APP NAME" Set Icon directory and fileiconfile="/System/Library/CoreServices/Finder.app/Contents/Resources/Finder.icns" response=$(osascript -e 'tell app "System Events" to display dialog "The first step is to select your USB key\n\nSelect USB to continue Cancel for Quit" buttons {"Cancel","USB"} default button 2 with title "'"$apptitle"' '"$version"'" with icon POSIX file "'"$iconfile"'" ') action=$(echo $response | cut -d ':' -f2) Exit if Canceledif [ "$action" == "Cancel" ] ; then |
Uhm, what exactly am I looking at? 😅 |
a button continue or exit for Text window exactly what you said Attach button for test |
Ha ok Sorry 😂 You need to edit the MainMenu.nib file with Xcode |
Changed in master. New behaviour across the board: All windows now have an enabled close button which quits the app when pressed. Back in the days, such behaviour was a violation of the Apple Human Interface Guidelines. Apps were to stay open even if their only window was closed. But not even Apple seems to abide by these rules any more, and only old Mac guys like me seem to like them. :/ |
I just tried this out with the latest HEAD, but the x is still grayed out. Do I have to enable it somehow? |
Strange. Have you tried uninstalling and reinstalling the command line tool? Does this also happen when you create an app using the GUI app? |
Several times
When I create an app with the GUI, the x button works. |
Is there a way to enable the red window closing button for text windows and web views? It's quite unintuitive that you have to click a separate "Quit" button.
The text was updated successfully, but these errors were encountered: