• 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 Tutorial?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURL Tutorial?


  • Subject: Re: NSURL Tutorial?
  • From: "John C. Randolph" <email@hidden>
  • Date: Sun, 28 Oct 2001 15:27:44 -0800

On Sunday, October 28, 2001, at 11:36 AM, Brian Moore wrote:

Can anyone help me on how to use NSURL to retrieve an image of the net and display it into a NSImageView? It's probably very simple, but I am somewhat new to cocoa and would appreciate some help..

Try:

NSImage *myImage =
[[NSImage alloc] initWithContentsOfURL:
[NSURL URLWithString:@"http://wherever.it.is.com/path/to/the/image.jpg";]];

-jcr

"I fear all we have done is to awaken a sleeping giant and fill him with a terrible resolve." -Admiral Isoroku Yamamoto, Dec 7, 1941.


References: 
 >NSURL Tutorial? (From: Brian Moore <email@hidden>)

  • Prev by Date: Re: NSWorkspace getInfoForFile weirdness
  • Next by Date: Re: Auto-Completion
  • Previous by thread: Re: NSURL Tutorial?
  • Next by thread: Re: Whats Wrong?
  • Index(es):
    • Date
    • Thread