[PD-dev] [ pure-data-Patches-1544041 ] [initbang]/[closebang] for patch constructor/destuctor

SourceForge.net noreply at sourceforge.net
Mon Oct 30 06:11:11 CET 2006


Patches item #1544041, was opened at 2006-08-21 11:55
Message generated for change (Comment added) made by eighthave
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1544041&group_id=55736

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
Private: No
Submitted By: IOhannes m zmölnig (zmoelnig)
Assigned to: Miller Puckette (millerpuckette)
Summary: [initbang]/[closebang] for patch constructor/destuctor

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: Hans-Christoph Steiner (eighthave)
Date: 2006-10-30 00:11

Message:
Logged In: YES 
user_id=27104


This is huge, it allows Pd objects to dynamically generate
inlets and outlets and have then work properly.

----------------------------------------------------------------------

Comment By: IOhannes m zmölnig (zmoelnig)
Date: 2006-08-22 10:29

Message:
Logged In: YES 
user_id=564396

for reasoning why this is needed, see the pd-dev archives

----------------------------------------------------------------------

Comment By: IOhannes m zmölnig (zmoelnig)
Date: 2006-08-22 10: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&group_id=55736




More information about the Pd-dev mailing list