I have an NSPopover
in a Cocoa application, and since Lion - it renders as semi-transparent, so that whatever text fields, tables, etc. that it overlays - these now show through underneath it and it looks really strange. I checked the class reference docs from Apple, but there doesn't seem to be a way to change it to be opaque. The only two property values that seem to be available to specify appearance are NSPopoverAppearanceMinimal
, and NSPopoverAppearanceHUD
- but neither of these seem to relate to alpha or opacity. Is the only way to make an NSPopover
opaque by over-riding drawRect ? or does anyone know of a better way to do it ? It seems to be available for UIPopover
on iOS, but not NSPopover
for Cocoa...
To turn the background fully opaque, please have a look at this post:
How to change NSPopover background color include triangle part?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With