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

  • SEARCH
  • Home
  • 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 7001039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:45:05+00:00 2026-05-27T20:45:05+00:00

So I have a service clint class that has a method called fetch. I

  • 0

So I have a service clint class that has a method called fetch.
I am invoking this method using NSInvocationOperation. and when I check the thread it seems like it’s callin the mthod on the main thread. Isn’t the whole point of using NSInvocationOperation to run things asynchronously?

Invoking method

ServiceClient *client = [[ServiceClient alloc] init];
NSInvocationOperation *invocatopnOperation = [[NSInvocationOperation alloc] initWithTarget:client selector:@selector(fetch) object:nil];
[invocatopnOperation start];

The method in service client

- (void)fetch
{
    if ([[NSThread currentThread] isEqual:[NSThread mainThread]])
    {
        NSLog(@"NOOOOOO");
    }
     ............
}
  • 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-05-27T20:45:06+00:00Added an answer on May 27, 2026 at 8:45 pm

    From NSInvocationOperation class reference:

    The NSInvocationOperation class is a concrete subclass of NSOperation
    that manages the execution of a single encapsulated task specified as
    an invocation. You can use this class to initiate an operation that
    consists of invoking a selector on a specified object. This class
    implements a non-concurrent operation
    .

    This means that in order to perform an operation asynchronously you need to add it to an operation queue.

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

Sidebar

Related Questions

I have an ASP.NET (.asmx) Web Service project that has a method like: public
I've create a Windows Service using C# that when OnStart is called creates a
I have an .net 2.0 C# client app that has a web service reference
I have a WCF service that is using a custom ServiceAuthorizationManager . The custom
I'm using the Amazon SDK and I have a method that returns a Stream
I have a WCF service which has one method returning a stream. [ServiceContract] public
I have a solution that has three projects: WPF Application Class Library NUnit Testing
.NET 3.5, VS2008, WCF service using BasicHttpBinding I have a WCF service hosted in
Question in title... In short - I have a WCF service exposing operations that
I am using Visual Studio 2008 and have added a web reference that points

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.