Re: NSView setAlphaValue question (Update still not working)
Re: NSView setAlphaValue question (Update still not working)
- Subject: Re: NSView setAlphaValue question (Update still not working)
- From: "Rick C." <email@hidden>
- Date: Fri, 17 Dec 2010 12:45:33 +0800
Hi again Seth,
Ok I thought that was easy enough but something is still not right. When I code my view to be redrawn at varying alpha and then have my controller send the message when it's time to be redrawn it does not work in Leopard (Snow Leopard again no problem). Now the view is reporting the alpha being changed and the fact that it works in Snow "should" mean I coded it correctly, but again no changes evident in Leopard. If I use setWantsLayer then it works but I'm back to the broken issues again (still funny why no problem on PPC Leopard just Intel). But as for the fading doesn't work on PPC or Intel doing it this way. I must be missing something? What does work is setHidden and I could give up and just have the fade effect on Snow, but it sure would be nice to keep it the same on both. Any thoughts of what maybe I'm doing wrong? Thanks again,
rc
On Dec 17, 2010, at 8:57 AM, Seth Willits wrote:
> On Dec 16, 2010, at 6:34 AM, Rick C. wrote:
>
>> ... So I had that working too until I realized in Leopard the view won't accept setAlphaValue unless I tick the box in IB for core animation. So I did tick the box for window view and it worked but it broke a lot of subsequent UI functions/processing....
>
>
> Yeah, layer-backed views don't always work perfectly. What I would do instead is just go old school and redraw the view's contents at varying alpha. It's more work than using the animator on the view itself, but it'll work OK and you won't have to start over completely. Off the top of my head I can't think of a simpler solution.
>
>
> --
> Seth Willits
>
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden