• 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: Opening dual NSStreams synchronously
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening dual NSStreams synchronously


  • Subject: Re: Opening dual NSStreams synchronously
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 2 Feb 2010 15:24:31 -0800


On Feb 2, 2010, at 11:27 AM, Richard Penwell wrote:

Very true on the overall method, I'd prefer to make the whole thing asynchronous, but thus far cannot figure out how to wrangle SenTestKit into handling test methods that pass when a delegate method is called...

I've done this in the past by writing a test utility method that spins the runloop until a flag is set or a timeout occurs. The delegate method then sets the flag. It's sort of like what you're doing now, except that the synchronous stuff is in the test code, not in the actual library.


—Jens_______________________________________________

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: 
 >Opening dual NSStreams synchronously (From: Richard Penwell <email@hidden>)
 >Re: Opening dual NSStreams synchronously (From: Richard Penwell <email@hidden>)
 >Re: Opening dual NSStreams synchronously (From: Jens Alfke <email@hidden>)
 >Re: Opening dual NSStreams synchronously (From: Richard Penwell <email@hidden>)

  • Prev by Date: Re: Analyzer Questions
  • Next by Date: Re: RegisterEventHotKey and keylogging
  • Previous by thread: Re: Opening dual NSStreams synchronously
  • Next by thread: performFindPanelAction
  • Index(es):
    • Date
    • Thread