NEWBIE: NSArray toll-free-bridged with CFArray?
NEWBIE: NSArray toll-free-bridged with CFArray?
- Subject: NEWBIE: NSArray toll-free-bridged with CFArray?
- From: ber <email@hidden>
- Date: Sat, 7 Sep 2002 19:20:38 -0400
In the following snippet the compiler issues:
Controller.m:15: warning: passing arg 1 of `SecKeychainCopySearchList'
from incompatible pointer type
where line 15 is is the 2nd call to SecKeychainCopySearchList.
OSStatus ret;
CFArrayRef searchList;
NSArray *anotherSearchList;
ret = SecKeychainCopySearchList(&searchList);
ret = SecKeychainCopySearchList(anotherSearchList);
The declaration for SecKeychainCopySearchList is:
OSStatus SecKeychainCopySearchList(
CFArrayRef *searchList);
NSArray tells me "... in an API where you see a CFArrayRef parameter,
you can pass in an NSArray instance."
I apparently don't know what an "NSArray instance" is. What am I doing
wrong that generates the warning?
Thanks,
brian redman
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.