How to tell ARC do not release objects in main thread, which are used in another thread? How to prevent releasing?
-(void)someFunc
{
array = ... //fetching array of entities from a core data
for(SomeObject * obj in array)
{
NSSomeOperation * op = [[NSSomeOperation alloc] initWithValue:obj];
//start operation
}
//it seems here ARC release array and all items
}
The array is fetched from a Core Data.