Re: NSImageView frames
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.