2014-12-07 68 views
0

所以我犯了更新到xCode 6的巨大錯誤。我打開了我正在處理的項目(objc不是很快),並且突然出現大量錯誤,其中沒有任何之前更新。更新到xcode6搞砸了我的應用程序coredata

這是爲什麼

fetchedObjects = [[[NSApp delegate] managedObjectContext] executeFetchRequest:fetch error:&error]; 

現在給我的錯誤:

no known instance method for selector 'managedObjectContext' 

請幫助

+0

錯誤或警告? – zaph 2014-12-07 22:09:00

回答

2

嘗試鑄造[NSApp delegate]到任何類實現managedObjectContext,幷包括其標題(如果你不已經做到了)。

+0

工作。謝謝! – 2014-12-07 22:19:32