0

I have a time consuming process which runs with an NSOperation. I now need user's choice to choose between different subprocesses. I need to stop the process until the user respond to the question.

How can I do this from an NSOperation?

Thanks

AP.
  • 5,205
  • 7
  • 50
  • 94

2 Answers2

1

It should just be a matter of creating an NSAlert and calling runModal on it, making sure you're on the main thread. Have you tried that?

Francis McGrew
  • 7,264
  • 1
  • 33
  • 30
-1

Perhaps in the method where you are creating the NSAlert, you can have assert([NSThread isMainThread]) at the top of the method and I think that this will assure that this method get executed on the main thread. I hope this helps!

tams
  • 830
  • 5
  • 9