Re: CFSTR and double-double quotes

2008-07-26 Thread Michael Ash
On Sat, Jul 26, 2008 at 2:40 PM, Ivan Galic <[EMAIL PROTECTED]> wrote: > Hi, > > I've been writing a utility function for getting a path within the bundle > from the filename. For that, I used the function CFBundleCopyResourceURL, > which needs some CFStringRefs. I saw somewhere on the net an examp

Re: CFSTR and double-double quotes

2008-07-26 Thread Greg
It's just padding it with zero's. "" = '\0' Which is probably why passing a variable didn't work. You can do this: char *yum = "fee" "fi" "fo" "fum"; And the compiler will concatenate that into: "feefifofum", but you can't do this: "asdf" somevar "poo" Because the compiler doesn't know t

CFSTR and double-double quotes

2008-07-26 Thread Ivan Galic
Hi, I've been writing a utility function for getting a path within the bundle from the filename. For that, I used the function CFBundleCopyResourceURL, which needs some CFStringRefs. I saw somewhere on the net an example like this: CFSTR("somefile") and it worked fine. However, when I pu