magicalpanda / MagicalRecord

Super Awesome Easy Fetching for Core Data!
Other
10.79k stars 1.79k forks source link

Calling countForFetchRequest:error: without performBlock: #1081

Open dniprodev opened 9 years ago

dniprodev commented 9 years ago

Why in -[ManagedObject MR_countOfEntitiesWithPredicate:inContext:] method -countForFetchRequest:error: called directly not over performBlock:

For example in -MR_executeFetchRequest:inContext method -executeFetchRequest:error: call over performBlockAndWait:

pronebird commented 9 years ago

I was just wondering about the same today. I think it's developer's responsibility to wrap it in performBlock if you use private queue context.