Re: Fading a control
Re: Fading a control
- Subject: Re: Fading a control
- From: Charles Jolley <email@hidden>
- Date: Wed, 5 Dec 2001 12:09:37 -0600
Note that if you have any subviews, this will not draw the subviews in
the image.
-C
On Tuesday, December 4, 2001, at 07:08 PM, John C. Randolph wrote:
On Wednesday, December 5, 2001, at 04:07 PM, Dustin Mierau wrote:
Alright, so how would someone, oh let's call him Mustin Dierau,
set the opacity of an NSControl? This is done with the controls
in the OS X login window.
Just a guess, I haven't tried this, but..
Subclass the control in question. In your -drawRect: method,
lock focus on an NSImage instance of the same size as self, call
[super drawRect:..], unlockfocus on the image, lock focus back
on self, and composite the image in place with one of the
dissolveToPoint.. methods.
-jcr
"For every complex problem there is an answer that is clear,
simple, and wrong." -- H L Mencken
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev