I have a view with a few textured NSButton objects placed on top of a 
contentView.  Since a couple of the buttons overlap and one uses transparency 
and requires a shadow, I turned on the wants-layer feature for that button.  
The button still looks a little funky in the corner where it overlaps another 
button, so I turn on wants-layer for the entire view by setting wants-layer for 
the contentView containing the buttons.  When I run the application, the button 
with the shadow is invisible.  It is there, I can click on it with the mouse or 
press the key bound to the button and the app responds appropriately.  If I 
turn off wants-layer for the contentView and run the app again, I can now see 
the button, though it looks wrong because of the missing Core Animation 
features with transparency and shadow.

The other half of the puzzle is that this view used to work fine.  It broke 
when I added a second window to the app, which also uses Core Animation.

Anyone seen anything remotely like this?

http://dl.dropbox.com/u/4920112/Screenshots/Screen%20shot%202011-03-03%20at%203.17.57%20PM.PNG
http://dl.dropbox.com/u/4920112/Screenshots/Screen%20shot%202011-03-03%20at%203.18.26%20PM.PNG
http://dl.dropbox.com/u/4920112/Screenshots/Screen%20shot%202011-03-03%20at%203.19.13%20PM.PNG

-Michael
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to