GetItemInfo
status_t GetItemInfo(int32 id, const char** _name) const;
status_t GetItemInfo(const char* name, int32* _id) const;
if (deskbar.GetItemInfo(j, &name) == B_OK) {
while (deskbar.GetItemInfo(replicant.String(), &found_id) == B_OK) {
assert(myDeskbar.GetItemInfo(theView->Name(), &theId2) == B_OK);
assert(myDeskbar.GetItemInfo(theView->Name(), &theId2) == B_OK);
assert(myDeskbar.GetItemInfo(id, &name) == B_NAME_NOT_FOUND);
assert(myDeskbar.GetItemInfo("NameThatDoesNotExistWeHope!!", &id) == B_NAME_NOT_FOUND);
assert(myDeskbar.GetItemInfo(id, &name) == B_OK);
assert(myDeskbar.GetItemInfo(name, &tmpId) == B_OK);
assert(myDeskbar.GetItemInfo(id, &name) == B_NAME_NOT_FOUND);