CFBagGetValueIfPresent

Header: CFBag.h Carbon status: Supported

Specifies whether a value exists in a CFBag object and, if it does, returns that value indirectly.

Boolean CFBagGetValueIfPresent (
    CFBagRef bag, 
    const void *candidate, 
    void **value
);
Parameter descriptions
bag

Pass a reference to the CFBag object that you want to obtain the value from.

candidate

Pass a pointer to the value that you want to query the CFBag about.

value

Declare a variable of the type appropriate to the value and pass a pointer to . Upon return the value variable contains a pointer to the value if it exists in the from the CFBag object; otherwise, the function returns NULL.

function result

TRUE if the value is present in the CFBag object, FALSE otherwise.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)