• 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 won't update background color without frame resizing!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: NSReadPixel
  • Next by Date: TabView delegate
  • Previous by thread: Re: Methods with Variable Numbers of Arguments
  • Next by thread: TabView delegate
  • Index(es):
    • Date
    • Thread