• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NEWBIE: NSArray toll-free-bridged with CFArray?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: NEWBIE: NSArray toll-free-bridged with CFArray?
      • From: Rosyna <email@hidden>
References: 
 >NEWBIE: NSArray toll-free-bridged with CFArray? (From: ber <email@hidden>)

  • Prev by Date: Re: Two-level namespaces?
  • Next by Date: Proper idom for a failed init?
  • Previous by thread: Re: NEWBIE: NSArray toll-free-bridged with CFArray?
  • Next by thread: Re: NEWBIE: NSArray toll-free-bridged with CFArray?
  • Index(es):
    • Date
    • Thread