I have an object that registers for notification of containing patcher events with:
My notify function is receiving patcher notification correctly.
When a patch containing my object loads, I am able to use the following function to find the patcher’s parentpatcher, patcher’s box, and patcher’s poly~ instance (if in a poly~) from either loadbang_start or loadbang_end notification:
After loading, if an abstraction or poly~ containing my object is manually instantiated, duplicated, pasted, or deleted then undo is used, my object receives the newly instantiated patcher loadbang notifications as expected.
But in these cases, the above code fails to find the patcher’s parent patcher and box – even at loadbang_end, when presumably everything should be initialized.
And is there any solution that will work in these cases (preferably at loadbang_start)?