• 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
+[NSApp nextEventMatchingMask:...] from other thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

+[NSApp nextEventMatchingMask:...] from other thread


  • Subject: +[NSApp nextEventMatchingMask:...] from other thread
  • From: Sidney San Martín <email@hidden>
  • Date: Wed, 6 May 2009 12:55:53 -0400

I recently found out that +[NSURLConnection
sendSynchronousRequest:...] leaks in Tiger, so I'm trying to write my
own implementation (these connections are already threaded and make
more sense to run synchronously). I use +[NSApp
nextEventMatchingMask:...] in the custom implementation to block until
the connection is finished, and it works great... in the main thread.
If I call my code from a different thread, nextEventMatchingMask:
returns nill instantly.

Run loops and event handling is a little bit above my current skill
level. How can I get the desired behavior here?
_______________________________________________

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

  • Follow-Ups:
    • Re: +[NSApp nextEventMatchingMask:...] from other thread
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Disabling check box cells
  • Next by Date: Re: NSNotificationQueue & NSOperationQueue thread death
  • Previous by thread: Re: Disabling check box cells
  • Next by thread: Re: +[NSApp nextEventMatchingMask:...] from other thread
  • Index(es):
    • Date
    • Thread