Add a named object to the given namespace.
Source position: utility.pas line 263
function AddNamedObject( |
NameSpace: PNamedObject; |
Obj: PNamedObject |
):LongBool; |
NameSpace |
|
The NameSpace to add the NamedObject object to. If this value is nil, then the NamedObject will be added to the root NameSpace. This is useful for sharing NamedObjects between Tasks. |
If the NamedObject can be added to either the supplied NameSpace or the system global NameSpace, this function will return True. Otherwise it will return False. This will generally happen when the NSF_NODUPS flag is set and this NamedObject has the same name as a second object, or when the object is already in a NameSpace.
Adds a given NamedObject to a NameSpace which is addressed through a second NamedObject. Allows you to link a common group of NamedObjects together. If the NameSpace doesn't support duplicate names, then a search for a duplicate will be made, and False returned if one is found.
Although the AmigaOS 3.1 autodocs did not say so, under 3.0 you couldn't add a NamedObject to a NameSpace when the NamedObject you were adding had a NameSpace itself. This has changed. This is because the autodocs did not say this, and they are right :)
|
Remove a named object. |
|
|
Allocate a named object. |
|
|
VarArgs Version for AllocNamedObjectA() |
|
|
Free a named object. |
|
|
Frees a name object. |
|
|
Attempt to remove a named object. |
|
|
Find the next object of a given name. |
|
|
Return the name of the object. |