IKImageView displays garbage when it has no image

Originator:boredzo
Number:rdar://7333961 Date Originated:2009-10-24T17:07-0700
Status:Open Resolved:
Product:Mac OS X Product Version:10.6.1
Classification:Other Bug Reproducible:Always
 
Summary:
If an IKImageView has no image, it will display whatever bits happen to be in its backing store.

Steps to Reproduce:
1. Load from a nib a window with an IKImageView (not bound to a value URL).
2. Don't attempt to give the IKImageView an image in any way.
3. Order the window in.

Expected Results:
You see a blank image view—either not displayed at all (showing superview/window background), or showing only its own background.

Actual Results:
You see random garbage.

Regression:
NSImageView didn't do this, but that probably doesn't count.

Notes:
I'm enclosing a test app.

[Test app: http://boredzo.org/radar-attachments/7333961/EmptyImageViewTest-r0.tbz ]

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!