• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Oh notification, where are you?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Oh notification, where are you? (From: Michael Thon <email@hidden>)
 >Re: Oh notification, where are you? (From: Rob Keniger <email@hidden>)
 >Re: Oh notification, where are you? (From: Michael Thon <email@hidden>)

  • Prev by Date: CoreData SQL tracing...
  • Next by Date: Re: NSArrayController addObject or insertObject:atArrangedObjectIndex:
  • Previous by thread: Re: Oh notification, where are you?
  • Next by thread: Re: Oh notification, where are you?
  • Index(es):
    • Date
    • Thread