我为什么得到这个:_cfurl:无法识别的选择器

问题描述

|| 我的初始化是这样的:
- (id) init {
    [super init];
    sounds = makeDictFromArrayOfURLs(getNoiseFileURLs());
    [sounds retain];
    NSURL *theFirstNoise = [[sounds allKeys] objectAtIndex:0];
    CFURLRef uref = (CFURLRef)theFirstNoise;
    OSStatus ret = AudioServicesCreateSystemSoundID(uref,&chosenNoise);
当我们到达最后一行时,它会抛出以下内容:
2011-06-09 23:19:18.744 SuperTimer[94516:207] -[NSPathStore2 _cfurl]: unrecognized selector sent to instance 0x940cfb0
2011-06-09 23:19:18.746 SuperTimer[94516:207] *** Terminating app due to uncaught exception \'NSInvalidArgumentException\',reason: \'-[NSPathStore2 _cfurl]: unrecognized selector sent to instance 0x940cfb0\'
是的,调试起来有点紧凑。 在我得到转储之前,FirstNoise包含了预期的(某种)数据。 (它的描述方法打印出一个奇怪的表格,但我被告知这是正常的。)     

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)