Re: NSURL Tutorial?
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.