NSImageView won't update background color without frame resizing!
NSImageView won't update background color without frame resizing!
- Subject: NSImageView won't update background color without frame resizing!
- From: Ryan Cabell <email@hidden>
- Date: Sat, 14 Dec 2002 17:36:12 -0700
I'm having an annoying problem, when trying to change an NSImageView's
image's background color using -setBackgroundColor. If I change the
color, the view won't get updated until I resize it (it's tied in IB to
resize with the window). Just sort of "bumping up" the window will do
it, but I obviously want to update the view in a more normal way.
I've tried using -setNeedsDisplay, -display,-calcSize, and -sizeToFit
on the view, and -recache on the image inside. Changing the caching
mode to never cache seems to completely ignore the background color
under any circumstances. If it matters, the image being drawn into the
NSImageView is a PDF file.
Nothing seems to work! Does anyone have any idea how to force the
View/Image to redraw correctly?
Thanks a bunch,
-Ryan Cabell
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.