That's all there is to it: With this single line of code, container_view is primed to accept and (automatically) display dropped replicants. A dropped replicant becomes a child of the container view. The container view itself can be any BView object - you don't alter the view in any way, or even tell it that it's going to be a container.
true (see SetTypeEnforced()) and the shelf has a name, then the BMessage must have a "shelf_type" string and this string must match the shelf name. Otherwise, the replicant is rejected.
false meaning rejection).
Except in the case of a no-view archive, AddReplicant() returns B_SKIP_MESSAGE.
| Message | Specifiers | Meaning |
|---|---|---|
| B_COUNT_PROPERTIES | B_DIRECT_SPECIFIER | Returns number of replicants in the shelf. |
| B_CREATE_PROPERTIES | B_DIRECT_SPECIFIER | Adds the archived replicant in the BMessage "data" to the view at the BPoint in "location." |
| B_DELETE_PROPERTY | B_INDEX_SPECIFIER, B_REVERSE_INDEX_SPECIFIER, B_NAME_SPECIFIER, B_ID_SPECIFIER | Removes the specified replicant from the shelf. |
| B_GET_PROPERTY | B_INDEX_SPECIFIER, B_REVERSE_INDEX_SPECIFIER, B_NAME_SPECIFIER, B_ID_SPECIFIER | Archives the specified replicant into a BMessage in "result." |
| anything else | B_INDEX_SPECIFIER, B_REVERSE_INDEX_SPECIFIER, B_NAME_SPECIFIER, B_ID_SPECIFIER | Directs the scripting message to the replicant interface "suite/vnd.Be- replicant" (described below), first popping the current specifier off the stack. |
| Message | Specifiers | Meaning |
|---|---|---|
| B_GET_PROPERTY | B_DIRECT_SPECIFIER | Returns the replicant ID. |
| Message | Specifiers | Meaning |
|---|---|---|
| B_GET_PROPERTY | B_DIRECT_SPECIFIER | Returns the name of the replicant view. |
| Message | Specifiers | Meaning |
|---|---|---|
| B_GET_PROPERTY | B_DIRECT_SPECIFIER | Returns the signature of the add-on containing the code for the replicant. |
| Message | Specifiers | Meaning |
|---|---|---|
| B_GET_PROPERTY | B_DIRECT_SPECIFIER | Returns "suite/vnd.Be-replicant" in "suites" and a flattened BPropertyInfo describing the scripting suite in "messages." |
| Message | Specifiers | Meaning |
|---|---|---|
| any | B_DIRECT_SPECIFIER | Directs the scripting message to the replicant view, first popping the current specifier off the specifier stack. |