Won't an NSDictionary * work as a CFDictionaryRef? Aren't they supposed to be toll-free bridged? Like I said, I tried changing it to &dict with the same pty? error...
If that's not it, would it return a pty? error if it found a key in the dictionary that it couldn't translate? The only keys I had in the dictionary at the time of error was "tempo" and "time signature", which apparently are both documented for use..
On Dec 19, 2006, at 5:52 PM, William Stewart wrote: The CA APIs are expecting CFDictionary so...
CFMutableDictionaryRef dict; // add some stuff to the dict.
AudioFile... (... &dict);
This is the same for the Audio Converter, Audio Units, etc that take these kinds of constructions as well
Bill On 19/12/2006, at 2:41 PM, Evan Olcott wrote:
On Dec 19, 2006, at 3:01 PM, William Stewart wrote: &info
ALL property values are passed by reference, not by value..
Right, right, I tried that too (i just copied and pasted the latest attempt from the code) to the same error.
But to that end, since my app is Cocoa, an NSDictionary object *is only* used as a reference: NSDictionary *info; They can't be declared without the reference, so in this case it's not perfectly clear - that's why I tried it both ways...
|