Instance Method get Objects: and Keys: count:
Returns by reference C arrays of the keys and values in the dictionary.
iOS 5.0+ macOS 10.7+ tvOS 9.0+ watchOS 2.0+ Mac Catalyst 13.0+ Beta Declaration - ( ) void getObjects:( ) Object Type _Nonnull * objects andKeys:( ) Key Type _Nonnull * keys count:( ) NSUInteger count;
Upon return, contains a C array of the values in the dictionary.
Upon return, contains a C array of the keys in the dictionary.
The maximum number of objects to return.
The elements in the returned array and the keys array have a one-for-one correspondence, so that the nth object in the returned array corresponds to the the key in keys.
See Also Accessing Keys and Values all Keys
A new array containing the dictionary’s keys, or an empty array if the dictionary has no entries.
- all Keys For Object:
Returns a new array containing the keys corresponding to all occurrences of a given object in the dictionary.
A new array containing the dictionary’s values, or an empty array if the dictionary has no entries.
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