XMRemoteImage is a simple project that demonstrates a way to update an NSImage from a high resolution graphic on the web.

About

The project includes the XMImageDownloader class, which is an NSObject subclass with the designated initializer:

- (id) initWithProxyImagePath:(NSString *)proxyPath remoteImagePath:(NSString *)remotePath targetKey:(NSString *)key

The goal of this class is to save space in your application bundle by allowing you to include a low res proxy image, which can be updated at runtime from a hi res image at a web url.

XMImageDownloader downloads images on a separate thread, then sends an NSNotification when the download is complete.

Download

Download XMRemoteImage Xcode project (76 KB)

March 2nd 2009: Updated to support multiple asynchronous downloads.

Source Files

Reply

The content of this field is kept private and will not be shown publicly.
Enter the code shown in the image:

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
14 + 6 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Donate!





If you like what you find here and wish to support further development of this site, please donate via PayPal. No account required.

Syndicate

Syndicate content

User login

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
2 + 5 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
Enter the code shown in the image: