• 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: NSImage is Caching
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage is Caching


  • Subject: Re: NSImage is Caching
  • From: Chris Tracewell <email@hidden>
  • Date: Wed, 6 Oct 2010 10:06:41 -0700

Thanks for the suggestions, I did try that and -recache as well but neither works. I really think this has to be related to the URL caching but I am not sure where to start. I've been diggin through NSURL, NSURLConnection and NSURLCache but have yet to find the solution.

-chris



On Oct 6, 2010, at 4:45 AM, email@hidden wrote:

> NSImage has a -setCachePolicy: (?) method. Not sure if it's the right
> name, but you can look it up in the docs.
>
> On Tue, Oct 5, 2010 at 11:46 PM, Chris Tracewell <email@hidden> 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 (email@hidden)
>>
>> 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:
>>
>> This email sent to email@hidden
>>
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >NSImage is Caching (From: Chris Tracewell <email@hidden>)
 >Re: NSImage is Caching (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: NSOutlineView multi cell type binding query
  • Next by Date: Re: JDBC from Cocoa or the like
  • Previous by thread: Re: NSImage is Caching
  • Next by thread: Problem connecting to Oracle with app run from XCode
  • Index(es):
    • Date
    • Thread