1

I have object that implements MKReverseGeocoder. I'm running it inside of separate thread and it is delegate of itself. However its 'didFailWithError' and 'didFindPlacemark' methods are not being called. If i get it outside of thread, than everything works as expected.

Misha
  • 5,260
  • 6
  • 35
  • 63
  • Found a solution to this problem in my other question: http://stackoverflow.com/questions/6993924/delegate-callback-from-other-nsthread – Misha Aug 18 '11 at 10:27

1 Answers1

3

I believe MKReverseGeocoder requires a run loop to run correctly. If you're using NSThread you'll have to run the run loop manually.

jtbandes
  • 115,675
  • 35
  • 233
  • 266
  • Thanks. Can you give me a short example before i go over the link? – Misha Aug 09 '11 at 19:00
  • It will probably be as simple as calling `[[NSRunLoop mainRunLoop] run]` after starting your geocoder. You might also need to use `-runUntilDate:`. [This question](http://stackoverflow.com/questions/149646/best-way-to-make-nsrunloop-wait-for-a-flag-to-be-set) also has some good information. – jtbandes Aug 09 '11 at 19:01