Questions tagged [nsinvocationoperation]

The NSInvocationOperation class is a concrete subclass of NSOperation that manages the execution of a single encapsulated task specified as an invocation.

Resource

35 questions
0
votes
1 answer

Correct usage: NSOperation and NSInvocationOperation

I am studing about NSOperation and I have a doubt about the correct way of implementing it for my situation. In my app I want to perfom a lot of operations in background. Since my app can import data from a desktop software, my database can become…
Rafael
  • 1,655
  • 3
  • 17
  • 25
0
votes
3 answers

Setting more than one argument for NSInvocationOperation

-[NSInvocationOperation initWithTarget:selector:object:] only accepts one object to be passed as an argument for the method that will be called. I want to use two arguments; how can I do that? This is my code: - (void)loadImage:(NSURL *)imageURL { …
Khalid
  • 33
  • 1
  • 4
0
votes
1 answer

NSInvocationOperation with bad access crash

I got a big problem with NSInvocationOperation. When I run on my iPod 4, firmware 5.0.1, it's OK. But on my iPhone 4, iOS 4.1, it crashed. This is my code: CustomAnnotation *annotation = [[[ModelManager defaultModelManager]…
-1
votes
3 answers

Hide a UIlabel after some seconds

I'm using this following code to hide a UILabel after some seconds. Unfortunately if the user close the view during the NSInvocation is in progress the app crashes - (void)showStatusBarwithText:(NSString*)text{ lblNotification.hidden=NO; …
Usi Usi
  • 2,967
  • 5
  • 38
  • 69
-2
votes
1 answer

Get UIImageView animation for at least one cycle before terminating

I'm new to Objective C and X-code and I'm having trouble getting my UIImageView animation to stay on screen for at least one complete cycle. I am using it as a custom wait animation for when a button is tapped and a bunch of saving and processing…
1 2
3