• 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
NSImageView redraws
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSImageView redraws


  • Subject: NSImageView redraws
  • From: Chris Moolenschot <email@hidden>
  • Date: Tue, 20 Jun 2006 12:49:48 +0200

Hi all,

I have an issue where an NSImageView only updates the NSImage it is displaying if it is scaling the NSImage down to fit.

The NSImage is backed by an NSBitmapImageRep which is being modified via a slider. After each modification I am
calling


[imageView setImage: nil];
[imageView setImage: image];

to update the view. Caching is turned off in the NSImage and retainData is set to YES.

The view is being redrawn (I can see this using Quartz Debug), but it appears a cached version of the image is being used.

What am I doing wrong?

Thanks,

Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Vertically-expanding NSTextField
  • Next by Date: Re: Getting average power / peak power (sound monitoring)
  • Previous by thread: Re: Crash while getting the NSColor components
  • Next by thread: Help needed with the key down event in NSTextField
  • Index(es):
    • Date
    • Thread