Function

CFBagGetValues

Fills a buffer with values from a bag.

Declaration

void CFBagGetValues(CFBagRef theBag, const void **values);

Parameters

theBag

The bag to examine.

values

A C array of pointer-sized values to be filled with values from theBag. The value must be a valid C array of the appropriate type and size (that is, a size equal to the count of theBag).

See Also

Examining a Bag

CFBagContainsValue

Reports whether or not a value is in a bag.

CFBagGetCount

Returns the number of values currently in a bag.

CFBagGetCountOfValue

Returns the number of times a value occurs in a bag.

CFBagGetValue

Returns a requested value from a bag.

CFBagGetValueIfPresent

Reports whether or not a value is in a bag, and returns that value indirectly if it exists.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software