is it possible to http link to images?

Right now - becasue I can’t get this to work - or even know if it’s possible with AS Studio…I’m curling the file to a local temp location and then loading it from there…SLOW…

What I’d like to do is just display it with a link - like a browser does…(I know a browser technically caches images) I just thought it might be faster this way
ie:
set tempfilepath to “http://www.mywebsite.com/images/myimage.jpg
set the contents of image view theCell of drawer “thedrawer” of window “main” to load image tmpfilepath

any help is greatly appreciated.

No, the method you propose is not possible. Essentially, you’re already doing all that you can to display your network graphic in an image view. You must have an actual file to read into an nsimage, which you can then display in your image view.

The only other solution I see is by using a webview instead of an image view. You could then simply load the image’s url into the web view and it would display as you’d like. If you need the functionality of loading both local AND internet images, you can use ‘file:///’ url’s in the web view to view local files, too. Otherwise, you could use an image view and a web view, put them in two tabs of a tab view and then switch back and forth between the two tabs to change between the two views. The downside to using web views is that they don’t offer the flexibility that image views do, in terms of how the image is displayed and also how the view itself is displayed.

I’ve got some good code for loading file url’s and regular network url’s into webviews if you need them. There are a few posts here and on the net showing how to use webviews in ASS projects, if you feel like searching for them.

Good luck,
j