Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8101387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:58:12+00:00 2026-06-05T22:58:12+00:00

How to tell ARC do not release objects in main thread, which are used

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:58:14+00:00Added an answer on June 5, 2026 at 10:58 pm

    I have the same problem with ARC and fetching results using FetchResultController.
    I load the records first then I feed a tableView with them, it goes well at the first
    but when I scroll or I select any row, the managed objects inside the array become “nil”.

    The cause is: I forgot a small __strong for the object I’m creating that contains all the Core Data fetch I need.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Tell me please, how can I create xsd schema, which successfully validate the following
Tell me, how to make it impossible to close the window which extends org.eclipse.swt.widgets.Dialog
Tell me please, how can I create xsd schema, which successfully validate the following
plz tell me whats wrong in code bcz i m not able to add
I'm writing an app (in iOS 5 using ARC!) that presents several hundred objects
Tell me please, how to use getBulkUserInformationFor: method correctly? I have Could not authenticate
When not compiling with ARC, it is recommended to use copy properties for data
tell me what I need to correct, to the repeated clicking on another cell
Tell me please, what is the faster way to push a value into array?
Tell why you think Python, Perl, Ruby, etc is easiest for plugging in modules

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.