Package com.sun.jna.platform.mac
Class CoreFoundation.CFArrayRef
java.lang.Object
com.sun.jna.PointerType
com.sun.jna.platform.mac.CoreFoundation.CFTypeRef
com.sun.jna.platform.mac.CoreFoundation.CFArrayRef
- All Implemented Interfaces:
- NativeMapped
- Enclosing interface:
- CoreFoundation
A reference to an immutable 
CFArray object.
 
 CFArray is “toll-free bridged” with its Cocoa Foundation counterpart,
 NSArray. Therefore, in a method where you see an NSArray *
 parameter, you can pass in a CFArrayRef .
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintgetCount()Convenience method forCoreFoundation.CFArrayGetCount(com.sun.jna.platform.mac.CoreFoundation.CFArrayRef)on this objectgetValueAtIndex(int idx) Convenience method forCoreFoundation.CFArrayGetValueAtIndex(com.sun.jna.platform.mac.CoreFoundation.CFArrayRef, com.sun.jna.platform.mac.CoreFoundation.CFIndex)on this objectMethods inherited from class com.sun.jna.platform.mac.CoreFoundation.CFTypeRefgetTypeID, isTypeID, release, retainMethods inherited from class com.sun.jna.PointerTypeequals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
- 
Constructor Details- 
CFArrayRefpublic CFArrayRef()
- 
CFArrayRef
 
- 
- 
Method Details- 
getCountpublic int getCount()Convenience method forCoreFoundation.CFArrayGetCount(com.sun.jna.platform.mac.CoreFoundation.CFArrayRef)on this object- Returns:
- The number of values in this array.
 
- 
getValueAtIndexConvenience method forCoreFoundation.CFArrayGetValueAtIndex(com.sun.jna.platform.mac.CoreFoundation.CFArrayRef, com.sun.jna.platform.mac.CoreFoundation.CFIndex)on this object- Parameters:
- idx- The index of the value to retrieve.
- Returns:
- The value at the idxindex.
 
 
-