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

Re: NSImageView frames


  • Subject: Re: NSImageView frames
  • From: Devon E Bowen <email@hidden>
  • Date: Sat, 27 Dec 2003 15:41:34 -0500 (EST)

> Why are you overriding drawRect in an NSImageView? NSImageView's
> drawRect: takes care of all drawing automatically. It draws the
> border *and* the image of the view. All you do is call setImage: to
> give it the image you're drawing.

My image changes. It gets more transparent based on the settings of
a slider. So I have a drawRect method that composites the image as
needed. Or is there a better way to do that than subclassing
NSImageView? As someone pointed out, I was just missing the call to
[super drawRect] and now it seems to work fine.

Devon
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSImageView frames
      • From: "M. Uli Kusterer" <email@hidden>
  • Prev by Date: Re: Sheet after loading
  • Next by Date: how to determine file path from a document's NSFileWrapper?
  • Previous by thread: Re: NSImageView frames
  • Next by thread: Re: NSImageView frames
  • Index(es):
    • Date
    • Thread