Re: Transparency in NSButtonCell
Re: Transparency in NSButtonCell
- Subject: Re: Transparency in NSButtonCell
- From: Matt Ball <email@hidden>
- Date: Sat, 16 Jul 2005 16:13:18 -0400
Hmm.... After further investigation, it appears that the images are
not layering as I had thought. It turns out that whenever I click on
the button, the NSView subclass that is inside is drawing as the
button's background... (the NSView is also partially transparent. It
is drawn using a bezier path designed to look like iPhoto's "Adjust"
window or Motion's dashboards.
- Matt Ball
On 7/16/05, Matt Ball <email@hidden> wrote:
> Yep. I just noticed that the "layering" only seems to occur with the
> first click. After that, it stays layered, but it doesn't seem to add
> any more layers... (ie: the dark colors don't continue to get closer
> to black)
>
> - Matt Ball
>
> On 7/16/05, glenn andreas <email@hidden> wrote:
> >
> > On Jul 16, 2005, at 2:20 PM, Matt Ball wrote:
> >
> > > I am currently working on an NSButton and NSButtonCell subclass. The
> > > button that is being created (by compositing several images together)
> > > is partially transparent. Whenever I click on the button, rather than
> > > redrawing the button from scratch, it seems to be layering the
> > > composited images on top of the existing ones. Is there some special
> > > "clear" command that I need to send to the NSButtonCell before it
> > > redraws?
> >
> > Does your NSButtonCell subclass return "NO" for -(BOOL)isOpaque?
> >
> >
> > Glenn Andreas email@hidden
> > <http://www.gandreas.com/> wicked fun!
> > Widgetarium | the quickest path to widgets
> >
> >
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden