On 2009 Sep 21, at 23:20, Michael Thon wrote:

I did find the problem - my thread needs a runloop in order to process notifications. Following this fellow's blog post:
   http://confuseddevelopment.blogspot.com/2006_10_01_archive.html
I added CFRunLoopRun(); after starting the metadataquery. Inside the method that gets called to process the notification I added: CFRunLoopStop(CFRunLoopGetCurrent ()); to stop the runloop.

Oh, then if you are using Mac OS 10.5, make sure that this still works in Mac OS 10.6. If not, read my post on this list on 2009-09-20, subject "[SOLVED (but not pretty)] Running run loops in 10.6".


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to