unsure about bag abstraction

bradipo's icon

Hi there,

recently I created a stupid little extension of the bag object I'm using in several occasions (and with different contents) within one big patch. I called it "bag+", and it does what I thought a bag object might do. But I'm no programmer, and a doubt makes me uneasy: if I use this abstraction with a bag object in it, can I be sure that every instance contains the different things it's supposed to contain, or may they all share the same content?

Max Patch
Copy patch and select New From Clipboard in Max.

Here's what I'm speaking about:

Thanks!

bradipo's icon

Oh, and I nearly forgot: I'd've liked to create the kind of hint you get with official objects when you pass the mouse over its in- and outputs (you know, those flashy explanations in dark gray bubbles). I only found the hints and annotations in the inspector window, but they're less cool. As you can see in the patch above, I tried to imitate those hints with bubble comments, but they're static. So, is it possible to create those hints also for your personal objects?

bradipo's icon

Ok, I answer myself at least the last question (maybe it's useful for somebody else): it's possible to have comments on in- and outlets of abstractions. You have to open the actual abstraction, click on an in- or outlet and then open the inspector. There you can add a comment. That's nice!

bradipo's icon

ok, thanks! But this answer seems as if other content containing objects, maybe [coll], [histo], or [funbuff] would eventually share their contents if used inside an abstraction. Is there something I (and surely other users) should know?

Thanks!

bradipo's icon

I see ! Thank you for this info.