私のプロジェクトはAutomatic Reference Countingを使用しており、次のアクセシビリティ API 関数を使用しようとしています。
extern AXError AXUIElementCopyAttributeValue (
AXUIElementRef element,
CFStringRef attribute,
CFTypeRef *value);
関数を呼び出すには、次のようにしています。
NSArray *subElements = nil;
AXUIElementCopyAttributeValue(..., (CFArrayRef *)&subElements);
ただし、ARC は最後の引数に関して次のエラーをスローしています。
error: Automatic Reference Counting Issue: Cast of an indirect pointer to an Objective-C pointer to 'CFArrayRef *' (aka 'const struct __CFArray **') is disallowed with ARC
これを解決するにはどうすればよいですか?