• 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
CFStringRef == NSString* ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFStringRef == NSString* ?


  • Subject: CFStringRef == NSString* ?
  • From: Mark Alldritt <email@hidden>
  • Date: Wed, 21 Apr 2004 13:22:45 -0700

Hello,

I have a bunch of C++ code that interacts with CodeFoundation (CFString,
etc.). I would like to reused this code in a Cocoa project. The question
is this: are the CoreFoundation types (CFStringRef, CFArrayRef, etc.) equal
to corresponding FoundationKit types (NSString*, NSArray*, etc.)?

If this is true, then I can safely cast my CFStringRef to a NSString* and
pass it along to the Objective-C/Cocoa portions of my application.

Cheers
-Mark

---------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 333 Moss Street
FAX: 250-383-3204 Victoria, B.C.
WEB: http://www.latenightsw.com/ CANADA V8V-4M9
AIM: markalldritt
_______________________________________________
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: CFStringRef == NSString* ?
      • From: Larry Fransson <email@hidden>
    • Re: CFStringRef == NSString* ?
      • From: Fritz Anderson <email@hidden>
    • Re: CFStringRef == NSString* ?
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Custom Views and Dragging ...
  • Next by Date: Re: delayed read-only bindings (suggestions/hints) ?
  • Previous by thread: [Moderator] Re: Custom Views and Dragging ... [ with attitude ]
  • Next by thread: Re: CFStringRef == NSString* ?
  • Index(es):
    • Date
    • Thread