Deleting plist file does not reset app on macOS 10.9+

后端 未结 4 601
猫巷女王i
猫巷女王i 2020-12-07 12:53

While developing a Cocoa application on 10.9, I have noticed that if I go to ~/Library/Preferences and delete the plist file for my app (to reset it), on the ne

4条回答
  •  萌比男神i
    2020-12-07 13:09

    BTW, I've just released a GUI app that may be more convenient than working with the defaults command:

    http://www.tempel.org/PrefsEditor

    It works practically the same as Xcode's plist editor, but affects the user's app preferences directly.

    To delete all your prefs, you could open your prefs in my Prefs Editor, Select All, then delete them with the Backspace or Delete key, and they're instantly all gone.

    However, for this particular task, using defaults delete might still be quicker, especially if you put the command into a text file ending in ".command", and make it executable (with chmod +x). Then you can double click it from the Finder to execute it.

提交回复
热议问题