You're missing a [theImage release] at the end of your method.

On Oct 5, 2010, at 2:46 PM, Chris Tracewell wrote:

> I have an NSImageView that accepts an image drop then sizes the image and 
> ftp's it to a web server. The image view is bound to myObject.myImage 
> property which set by a window controller calling its loadMyImage every time 
> the window opens...
> 
> 
> -(void)loadMyImage
>       {
>       NSImage *theImage = [[NSImage alloc] initWithContentsOfURL: theURL];
>       [self setMyImage: theImage];
>       }
> 
> The problem is that the image is being cached and I cannot figure out how. I 
> can drop images galore and it ftp's them to their final destination --> which 
> is where the image is loaded from. However, the image will stay the same even 
> when I destroy myObject, create another one and it calls loadMyImage method 
> again. Even between application restarts. 
> 
> This must be a setting in NSURL or NSURLConnection or NSURLCache, anyone have 
> a clue as to where to start? FWIW - my web browser always shows the freshest 
> image.
> 
> Thanks in advance.
> 
> -- chris
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/newslists%40autonomy.caltech.edu
> 
> This email sent to newsli...@autonomy.caltech.edu
> 

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to