• 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: NSURL tunneling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURL tunneling


  • Subject: Re: NSURL tunneling
  • From: John Stiles <email@hidden>
  • Date: Sun, 20 Mar 2005 09:03:43 -0800

On Mar 20, 2005, at 8:57 AM, John wrote:

And my app hangs. I plug the same URL into Safari - nothing loads. I plug the URL into Firefox - it loads the data, and continues to do so as new data is received.

What am I doing wrong? I'm thinking it never loads the data because it is continuously loading. The data is just text, what would normally be output by a serial port.

A synchronous load will never stop until the page is completely loaded (which will never happen, according to your description of the device).
You need asynchronous loading. Implement connectionWithRequest:delegate: and make a delegate class--this takes more work than your current code, but it's not rocket science. With luck that will give you positive results. Good luck :)

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Cocoa Bindings and multiple nibs (From: Anton Kiland <email@hidden>)
 >NSURL tunneling (From: John <email@hidden>)

  • Prev by Date: Re: setuid helper tool
  • Next by Date: Getting an image path from NSImageView
  • Previous by thread: NSURL tunneling
  • Next by thread: setuid helper tool
  • Index(es):
    • Date
    • Thread