Patches item #1544041, was opened at 2006-08-21 17:55 Message generated for change (Comment added) made by zmoelnig You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1544041...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: puredata Group: wishlist Status: Open Resolution: None Priority: 5 Submitted By: IOhannes m zmölnig (zmoelnig) Assigned to: Miller Puckette (millerpuckette) Summary: [initbang] for abstraction-constructor
Initial Comment: attached is a patch that adds a new object [initbang] to Pd.
This object is similar to [loadbang], however it gets executed just after the rest of the abstraction is built and _before_ the parent of the abstraction is finished.
reasoning: this object allows abstractions to have a runtime constructor (similar to the <object>_new() constructor of c-externals); the [initbang] is emitted before the parent patch is finalized, thus allowing the abstraction to add inlets/outlets depending on its arguments).
caveats: a similar method for the abstraction _destructor_ is still missing.
i haven't implemented an "initbang" message to the canvas to rerun the initialization again.
----------------------------------------------------------------------
Comment By: IOhannes m zmölnig (zmoelnig)
Date: 2006-08-22 16:25
Message: Logged In: YES user_id=564396
the 2nd patch additionally implements a [closebang] object, which gets called just before a canvas is destroyed.
note that the patch (cloeinitbang.diff) holds both the closebang- and the initbang-changes; do not! apply both patches
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1544041...