[interfacekit] Re: BDeskbar weirdness

>GetItemInfo() points *found_name to the name of the item identified by 
>for_id ...

>The caller is responsible for freeing found_name

>RETURN CODES:
>...
>B_BAD_VALUE (GetItemInfo()) *found_name is NULL

[...]
>Any comments or concerns?  Anyone as perplexed as me about what Be was 
>thinking when implementing this?  Can anyone explain why (*found_name !
>= NULL) is important?  Thanks.

Yes, it's pretty strange and does not really make sense.
I have checked the Deskbar sources and it does nothing about this, so, in the 
original implementation, it's the BDeskbar class which performs the (useless) 
check and also makes a copy of the name.
-- 

Massimiliano Origgi
    http://www.intuiware.com    mailto:max@xxxxxxxxxxxxx
        Squeezer 2.1 available! 
            Squeezer 2.2 beta available!
                WorkspaceSwitcher 2.2 available!


Other related posts: