Re: [PD-dev] External to monitor instantiation of objects
On Tue, 2011-03-08 at 10:59 -0500, Tedb0t wrote: Greetings all, I am looking for a way to create an external that outputs the name, number of inlets and outlets every time an object in a patch (or perhaps anywhere?) is instantiated. I'm aware of obj_ninlets and obj_noutlets and other functions in m_obj.c, but I need a hook that gets called whenever an object is initialized so I can grab its information. If anyone has any pointers, I would be most grateful :) :) Looks like Miller answered part of this question in the listing all available objects thread: there's a line in m_class.c in the class_new() function, just before the end, that you can uncomment to get Pd to print out every class as it's loaded (but not abstractions). .hc ___ Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Re: [PD-dev] recentfiles_list explanation
On Tue, 2011-03-15 at 03:45 +0100, Yvan Volochine wrote: I'm trying to get recentfiles written to ~/.pdsettings and I think I'm missing something obvious. (see my patch attached or here: http://pastebin.com/3apUXLzs ). so far I can read from .pdsettings and get the recentfiles in the File menu (when I wrote them in theremanually) but, in s_files.c/glob_savepreferences(): char *pathelem = namelist_get(recentfiles_list, i) does not make it. I think that I don't really understand the way pd and the gui communicate with each other. I think I found my error. should I add a method in m_glob.c that appends a filename to recentfiles_list. then when opening a window in Tcl, send the new filename to pd (please correct me if I'm wrong) ? I'll try after sleeping a bit :) Hey Yvan, It's great that you are taking this on, its definitely useful. I think that it might make more sense to create a separate GUI-only preference system. Its something that I had planned on trying, but hadn't found the time, so it'd be great if you beat me to it! This way it would be a lot easier to deal with, you can do everything from Tcl. .hc ___ Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Re: [PD-dev] recentfiles_list explanation
On 3/15/11, Hans-Christoph Steiner h...@at.or.at wrote: On Tue, 2011-03-15 at 03:45 +0100, Yvan Volochine wrote: I'm trying to get recentfiles written to ~/.pdsettings and I think I'm missing something obvious. [snip] Hey Yvan, It's great that you are taking this on, its definitely useful. I think that it might make more sense to create a separate GUI-only preference system. Its something that I had planned on trying, but hadn't found the time, so it'd be great if you beat me to it! This way it would be a lot easier to deal with, you can do everything from Tcl. hi, well I'm trying.. a separate GUI-only preference system would mean a separate dot file then (like .pdgui) ? and so far, this would contain only recentfiles right ? cheers, _y ___ Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Re: [PD-dev] recentfiles_list explanation
On 03/15/2011 10:15 PM, Yvan Volochine wrote: On 3/15/11, Hans-Christoph Steiner h...@at.or.at wrote: On Tue, 2011-03-15 at 03:45 +0100, Yvan Volochine wrote: I'm trying to get recentfiles written to ~/.pdsettings and I think I'm missing something obvious. [snip] Hey Yvan, It's great that you are taking this on, its definitely useful. I think that it might make more sense to create a separate GUI-only preference system. Its something that I had planned on trying, but hadn't found the time, so it'd be great if you beat me to it! This way it would be a lot easier to deal with, you can do everything from Tcl. hi, well I'm trying.. a separate GUI-only preference system would mean a separate dot file then (like .pdgui) ? why not make a ~/.pd/ folder and put your preferences for your plugin in there? this woul dallow for less clutter in the home-directory and bundle all the pd-related settings nicely together. and so far, this would contain only recentfiles right ? ~/.pd/recentfiles.conf would always only contain recentfiles configuration. fgamsdr IOhannes signature.asc Description: OpenPGP digital signature ___ Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Re: [PD-dev] recentfiles_list explanation
~/.pd/recentfiles.conf would always only contain recentfiles configuration. ok I have a couple more questions: now I have a ~/.pd/recentfiles.conf that is parsed and all filenames are added to a new Open Recent submenu when pd launches instead of putting them directly in the File menu (I removed one of the bottom separators in there). (that looks nice!) so the new layout of the file menu would be: [New] [Open] [Open Recent ] [---] [Save] [Save As] [---] [Message] [Print] [---] [Close] [Quit] what do you think of this idea ? then I wonder when it would be better to write this file. I'd like to do it only when closing pd but I'm not sure.. also, I created a new file and put all this recentfiles stuff in it, tcl/pd_guiprefs.tcl and I didn't find out where I should add it so it ends up in tcl/pkgIndex.tcl. any hints ? cheers, _y ___ Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Re: [PD-dev] recentfiles_list explanation
On 03/15/2011 11:20 PM, IOhannes zmölnig wrote: a separate GUI-only preference system would mean a separate dot file then (like .pdgui) ? why not make a ~/.pd/ folder and put your preferences for your plugin in there? this woul dallow for less clutter in the home-directory and bundle all the pd-related settings nicely together. and so far, this would contain only recentfiles right ? ~/.pd/recentfiles.conf would always only contain recentfiles configuration. yes you're absolutely right. cheers, _y ___ Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev