• 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
Bizzarre CFSTR behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bizzarre CFSTR behavior


  • Subject: Bizzarre CFSTR behavior
  • From: Luigi Castelli <email@hidden>
  • Date: Thu, 3 Jan 2008 23:26:30 -0800 (PST)

Hi there,

I am on a Mac Powerbook Intel Core Duo.
I am running MacOS 10.4.7 and Xcode 2.

If I write:

const char *kString = "hello";
CFStringRef cfString = CFSTR(kString);

Xcode doesn't compile the above code and gives me a parse error.

but if I write:

CFStringRef cfString = CFSTR("hello");

then, no problem.

Can anybody explain ?

Thanks.

- Luigi


------------------------------------------------------------
THIS E-MAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED RECIPIENT AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION.  ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR DISTRIBUTION IS PROHIBITED.  IF YOU ARE NOT THE INTENDED RECIPIENT, CONTACT THE SENDER BY E-MAIL AT email@hidden AND DESTROY ALL COPIES OF THE ORIGINAL MESSAGE. WITHOUT PREJUDICE UCC1-207.
------------------------------------------------------------



      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page.
http://www.yahoo.com/r/hs
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Bizzarre CFSTR behavior
      • From: Thomas Engelmeier <email@hidden>
    • Re: Bizzarre CFSTR behavior
      • From: "Finlay Dobbie" <email@hidden>
    • Re: Bizzarre CFSTR behavior
      • From: "Clark Cox" <email@hidden>
    • Re: Bizzarre CFSTR behavior
      • From: Apparao <email@hidden>
  • Prev by Date: Re: Problems linking against my own libs..
  • Next by Date: Re: Bizzarre CFSTR behavior
  • Previous by thread: Re: Problems linking against my own libs..
  • Next by thread: Re: Bizzarre CFSTR behavior
  • Index(es):
    • Date
    • Thread