• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTextField in NSWindow using setAlphaValue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Running Shell Script from Cocoa Application
  • Next by Date: Re: Control/Option keys both set "control" modifier flag in NSEvent
  • Previous by thread: Re: Game framework?
  • Next by thread: LDAP Objective-C Framework
  • Index(es):
    • Date
    • Thread