I have the following code snippet:
-(CFStringRef)setupFileName:(NSString*)_name :(NSString*)_extension
{
NSString* tmpName = [_name stringByAppendingString:_extension];
CFStringRef ref = (__bridge CFStringRef)tmpName;
return ref;
}
When I break at the return statement, ref contains the right data, a nice String with extension. But when I use it like this:
CFStringRef tickWav = [self setupFileName:_name :kTick];
It results in a useless character chain. Is there something corrupting my encoding, when I return the right value from the function?? What can I do?