• 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: Downloading via FTP and loading images in a NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Downloading via FTP and loading images in a NSTableView


  • Subject: Re: Downloading via FTP and loading images in a NSTableView
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 19 Mar 2008 15:10:32 +0100


Le 19 mars 08 à 14:50, Valentin Dan a écrit :
	Hi,

I'd like to know how can I get a file from a server that requires user & password ? What classes should I look at ?

	Also, is it possible to load an image in a NSTableView cell ?

And to sum up both questions, can an image be loaded from a server directly in a NSTableView, without saving it on the disk (knowing that the server will ask for credentials ...) ?

	Thanks !


PS: Thanks for the NSSocketPort info ... that class just appeared to be exactly what I needed - but one sholdn't judge by appearances :) -



Did you try NSURLDownload ? It supports FTP protocol and support credential.


http://developer.apple.com/documentation/Cocoa/Conceptual/URLLoadingSystem/URLLoadingSystem.html

Also have a look at NSURLConnection, it's more flexible it will allow you to avoid usage of a temporary file to store the data.

If you managed to download the stream into an NSData Object, then you can easily create an NSImage from it.



_______________________________________________

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: 
 >Downloading via FTP and loading images in a NSTableView (From: "Valentin Dan" <email@hidden>)

  • Prev by Date: Re: Downloading via FTP and loading images in a NSTableView
  • Next by Date: To get machine type (ppc, intel)
  • Previous by thread: Re: Downloading via FTP and loading images in a NSTableView
  • Next by thread: Re: Network communication with NSFileHandle & NSSocketPort
  • Index(es):
    • Date
    • Thread