• 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: Internet programming, point me?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Internet programming, point me?


  • Subject: Re: Internet programming, point me?
  • From: Jake Repp <email@hidden>
  • Date: Mon, 6 Jan 2003 13:37:47 -0800

For an example on how to do exactly this you can see some example code I have written that grabs HTML data in a background thread and posts it to the UI in the main thread:

http://jrepp.com/src/AsyncNotificationsVer2.zip.

This is my second try at this, the first time I tried to use a notification queue between threads didn't work.

I hope this helps.

-jake

On Monday, January 6, 2003, at 12:59 PM, Douglas Davidson wrote:

On Monday, January 6, 2003, at 10:58 AM, matt neuburg wrote:

Thanks, but I later realized I had failed to ask the question to which I really wanted to know the answer. The real question is, is there anything bad about what I'm doing? I simply plopped the Moriarty example into my project and called curl through it, and it works great. Is there any reason why that's a bad thing to do? I looked at the Networking example that shows how to do what I'm doing (a POST over HTTPS), and clearly I could copy it if I had to, but I can't think of a reason to do so. Am I mistaken? m.

I imagine I would use a separate task for some networking operation only if I wanted it to run completely separately from my main process; otherwise I would probably use one or another API and do it in-process, either in a separate thread or via a run loop source on my main thread. Obviously there are many choices, with widely differing characteristics.

Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Internet programming, point me? (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Random sorting
  • Next by Date: Preventing a window from coming to the foreground
  • Previous by thread: Re: Internet programming, point me?
  • Next by thread: Re: objects.nib files and MacCVSPro
  • Index(es):
    • Date
    • Thread