1152: AudioConverterNew returned -50
Any help appreciated. Thanks,
It's a bit useless to give an error code if you can't find out what it means.
There is a useful site called "osstatus.com" where you can look up error numbers. In this case, it says that -50 is an invalid parameter.
I suspect the problem is that your file "etexttemp" doesn't exist, and the -50 means your "appropriateForURL:" parameter isn't valid.
Instead, you should use a URL for the actual directory you will eventually save the recorded file to. This may come from asking the user with NSSavePanel, or could default to the user's Documents or Desktop folder.
Thanks for your help, QuinceyMorris.
It was a sandboxing issue in the ".entitlements" which caused the problem. All fixed now.