[PD-dev] locking vanilla save states on OS X

Dan Wilcox danomatika at gmail.com
Tue Mar 15 23:42:33 CET 2016


Sweet. All done.

The user default option is tested and working. It basically just tells OS X to not save the window state by default when closing Pd. It will also wipe any existing states when closing normally. Furthermore, state saving can still be asked for *explicitly* by holding the Option/Alt button when quitting via the File menu & Cmd+Q.

It’s basically just 1 line added to the pd_guiprefs.tcl. Here’s a patch: 


--------
Dan Wilcox
@danomatika <https://twitter.com/danomatika>
danomatika.com <http://danomatika.com/>
robotcowboy.com <http://robotcowboy.com/>
> On Mar 15, 2016, at 4:16 PM, Dan Wilcox <danomatika at gmail.com> wrote:
> 
> Hah, I think I just found a better way to do this via the app’s User Defaults: http://osxdaily.com/2011/08/01/turn-off-resume-per-app-in-mac-os-x-lion/ <http://osxdaily.com/2011/08/01/turn-off-resume-per-app-in-mac-os-x-lion/>
> 
> --------
> Dan Wilcox
> @danomatika <https://twitter.com/danomatika>
> danomatika.com <http://danomatika.com/>
> robotcowboy.com <http://robotcowboy.com/>
>> On Mar 15, 2016, at 4:12 PM, Dan Wilcox <danomatika at gmail.com <mailto:danomatika at gmail.com>> wrote:
>> 
>> Howdy all,
>> 
>> I’d like to add my mechanism for locking the save state folder created by OSX 10.7+ as outlined in http://puredata.info/docs/faq/help-pd-crashes-on-startup-on-mac-osx-10-7 <http://puredata.info/docs/faq/help-pd-crashes-on-startup-on-mac-osx-10-7>
>> 
>> Where would be the best place to add it to the tcl? A function in the apple_events.tcl called by pd-gui.tcl after startup?
>> 
>> --------
>> Dan Wilcox
>> @danomatika <https://twitter.com/danomatika>
>> danomatika.com <http://danomatika.com/>
>> robotcowboy.com <http://robotcowboy.com/>
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20160315/679f7c61/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osx_savestate.patch
Type: application/octet-stream
Size: 856 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20160315/679f7c61/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20160315/679f7c61/attachment-0001.html>


More information about the Pd-dev mailing list