• 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: figuring out the length of a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: figuring out the length of a string


  • Subject: Re: figuring out the length of a string
  • From: "Mark A. Stratman" <email@hidden>
  • Date: Fri, 25 Jun 2004 02:20:36 -0500

Thanks. :) That's good to know.
And sorry to the original poster for the mis-information (albeit marked as possibly such ;).

So since that's definitely not the problem then, i think we'd need to see specific error messages for certain then.

- mark

On Jun 25, 2004, at 1:57 AM, Chris Ridd wrote:

On 25/6/04 7:51 am, Mark A. Stratman <email@hidden> wrote:

The toll-free bindings work as far as treating an NSString as a
CFString, but I don't think it works the other way around.

No, it works both ways:

<URL:http://developer.apple.com/documentation/CoreFoundation/ Reference/CFStr
ingRef/index.html>

---
CFString is 3toll-free bridged2 with its Cocoa Foundation counterpart,
NSString. This means that the Core Foundation type is interchangeable in
function or method calls with the bridged Foundation object. Therefore, in a
method where you see an NSString * parameter, you can pass in a CFStringRef,
and in a function where you see a CFStringRef parameter, you can pass in an
NSString instance. This fact also applies to concrete subclasses of
NSString. See Integrating Carbon and Cocoa in Your Application for more
information on toll-free bridging.
---

Cheers,

Chris
_______________________________________________
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.
_______________________________________________
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.


References: 
 >Re: figuring out the length of a string (From: Chris Ridd <email@hidden>)

  • Prev by Date: Re: Data source management in NSOutlineView
  • Next by Date: How to tell what API is used
  • Previous by thread: Re: figuring out the length of a string
  • Next by thread: Re: figuring out the length of a string
  • Index(es):
    • Date
    • Thread