The NSInvocationOperation class is a concrete subclass of NSOperation that manages the execution of a single encapsulated task specified as an invocation.
Questions tagged [nsinvocationoperation]
35 questions
0
votes
1 answer
Asynchronous connection not getting called
I want to create two connections in a single view controller class. I am using NSOperationQueue for this purpose. The two connections are created in two functions and push inside the queue .The problem is delegates are not called. Please help me…

Anil Kothari
- 7,653
- 4
- 20
- 25
0
votes
1 answer
NSInvocationOperation - Does not call method on a different thread?
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…

aryaxt
- 76,198
- 92
- 293
- 442
0
votes
2 answers
How to pass object in NSInvocationOpreation
I have created an NSInvocationOpertion object as follows
NSString *myString = @"Jai Hanuman";
NSInvocationOperation *operation = [[NSInvocationOperation alloc] initWithTarget:self selector:@selector(taskMethod) object:myString];
NSOperationQueue…

Captain Buck
- 679
- 1
- 5
- 17
0
votes
2 answers
Adding information returned by threads to an array
I am relatively new to Objective C and I am trying to read information from a URL then add its info to my Name object then add the name objects to an array. I am able to read the info from the URLs fine and furthermore I am successful in adding…

kpce
- 35
- 9
0
votes
1 answer
NSInvocationOperation Cancel usage
Is it right if I cancel an NSInvocationOperation inside the operation?
example:
.h file:
//defined in the interface
NSInvocationOperation *op1;
NSOperationQueue *loadQueue;
.m file:
-(id)init{
op1 = [NSInvocationOperation new];
loadQueue =…

Siddharthan Asokan
- 4,321
- 11
- 44
- 80
0
votes
1 answer
Uploading files in background mode
I have two views: myFristView and mySecondView, in myFristView I have a code which can read the fields in my database and then send to a PHP server, this code NSInvocationOperation using this class to send the files in background mode.
The process…

user3781174
- 245
- 5
- 16
0
votes
1 answer
How to get object from NSInvocationOperation called method?
I have written code in my project
[NSInvocationOperation alloc]
initWithTarget:self
selector:@selector(loadImage)
object:ob
in…

Sami
- 139
- 2
- 8
0
votes
2 answers
UIImageView Takes Time To Load Image
I wanted to download image from internet from particular link
Downloading this image take place in other class which is Singleton class name moreAppInternet.m
My moreAppInterNet.m file is as follow
//finishedImgDling is bool
//mutableData is…

chavo218
- 1
- 1
0
votes
0 answers
NSInvocation crashes the app
My project is a calculation based criteria,where we populate list of mandatory fields from the coredata that were first fetched through webservice.
There is an option to calculate and reset the field. Since the calculation takes much time and…

Nassif
- 1,113
- 2
- 14
- 34
0
votes
1 answer
Access to NSUInteger property
I've some problem with accessing NSUInteger property in my code, which look like that:
MyController.h
@interface MyController : UIViewController
@property (retain, nonatomic) NSArray *updatesArray;
@property (nonatomic) NSUInteger…

Gie
- 1,907
- 2
- 24
- 49
0
votes
1 answer
Where to create a NSManagedObjectContext for an NSInvocationOperation
I have multiple NSInvocationOperations created and added to an NSOperationQueue. Two of these
NSInvocationOperations create lots of objects of the same parent class (Country and City which subclass Location). It has mostly gone well except that…

rob5408
- 2,972
- 2
- 40
- 53
0
votes
1 answer
why won't these NSInvocationOperation's actually run?
Just trying to do a simple example with NSOperationQueue & NSInvocationOperation. Here's my code:
- (void) runMethodsViaOperationQueue {
NSOperationQueue *thisQueue = [[NSOperationQueue alloc] init];
NSInvocationOperation…

pteeter
- 31
- 4
0
votes
0 answers
Core data error while using nsoperation
I'm using some core-data entities in a method that is concurrent, (it's in a NSInocationOperation object)... and I'm getting this error:
CoreData: error: NULL _cd_rawData but the object is not being turned into a fault
How to avoid this? The method…

user1028028
- 6,323
- 9
- 34
- 59
0
votes
1 answer
how to use asynchronous NSURLConnection for multiple urls
First, I think iPad has only single NIC (or what ever hardware) for handling connection. So requests are queued and serviced sequentially and there can't be 2 connections running at the same time. Is this guess true?
I have UITabBar controller,…

Hana Ibrahim
- 3
- 3
0
votes
1 answer
NSDictionary passed to NSOperation is null inside the invoked method
I'm using the code below to pass multiple values to NSOperation.
I have defined an NSDictionary but I can't access on it (it returns always null) within the method called.
Below is my code to invoke the method
NSDictionary *params = [[NSDictionary…

Mario Catena
- 575
- 1
- 8
- 20