Re: NEWBIE: NSArray toll-free-bridged with CFArray?
Re: NEWBIE: NSArray toll-free-bridged with CFArray?
- Subject: Re: NEWBIE: NSArray toll-free-bridged with CFArray?
- From: Rosyna <email@hidden>
- Date: Sat, 7 Sep 2002 17:54:35 -0700
Typecast.
SecKeychainCopySearchList((CFStringRef*)(&searchList));
Ack, at 9/7/02, ber said:
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?
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
---
Please include any previous correspondence in replies, it helps me
remember what we were talking about. Thanks.
_______________________________________________
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.