NSTextField in NSWindow using setAlphaValue
NSTextField in NSWindow using setAlphaValue
- Subject: NSTextField in NSWindow using setAlphaValue
- From: Jaime Magiera <email@hidden>
- Date: Sat, 6 Oct 2007 23:21:27 -0400
Hello,
Archives haven't yielded anything.
I've got a transparent floating window via the setAlphaValue: method.
The window contains several NSTextFields, one of which is bound to an
int value. I noticed that when the binding value is updated, the
NSTextField redraws with an alpha value of 1. The other static
textfields in the window do not loose their original opacity (from
the window).
The docs say...
-----------------------
Views placed on a nonopaque window with a transparent background
color retain their own opacity. If you want to make the entire window—
including the title bar and views placed on the window—transparent,
you should use setAlphaValue:.
----------------------
What would be the best practice way of having the NSTextField
maintain the same alpha value after updates?
thanks,
Jaime Magiera
Sensory Research
http://www.sensoryresearch.net
_______________________________________________
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