Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFSTR



On 11/29/04 1:47 PM, Steve Mills didst favor us with:

> Can anyone enlighten me as to what exactly the CFSTR macro does?

It's magic. ;-)

I think it depends on your compiler. In some cases its a function which
returns a CFStringRef from a dictionary using the parameter as the key. I
think in Xcode it can be implemented like a constant C-string:

const char    str[] = "Hello";

Under no circumstances should you release the string returned by CFSTR.

> Why the extra "" after the parameter?

I'm not aware of any extra "". It should just be CFSTR("Hello")

Larry

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >CFSTR (From: "Steve Mills" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.