Re: Oh notification, where are you?
Re: Oh notification, where are you?
- Subject: Re: Oh notification, where are you?
- From: Jerry Krinock <email@hidden>
- Date: Tue, 22 Sep 2009 05:10:53 -0700
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 (email@hidden)
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:
This email sent to email@hidden