• 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
Re: NSStatusItem image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSStatusItem image


  • Subject: Re: NSStatusItem image
  • From: Greg Titus <email@hidden>
  • Date: Mon, 3 Mar 2003 12:09:49 -0800

On Sunday, March 2, 2003, at 11:45 PM, Arthur VIGAN wrote:

Hi,

my application uses an NSStatusItem in the menu bar with a little icon which is an NSImage. So I like to know if it is possible to change the opacity of the NSImage directly. As I don't "dissolve" the image into a view, I don't know how to change the opacity. Can somebody help?

Hi Arthur,

Create a second image of the same size (with -initWithSize:), lock focus on it, and dissolve your first image into it with whatever opacity you desire. Then use that second image in your status item.

Hope this helps,
- Greg
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSStatusItem image (From: Arthur VIGAN <email@hidden>)

  • Prev by Date: Re: Adding AppleScript Studio Support to a Cocoa Application
  • Next by Date: RE: automatic web updates
  • Previous by thread: NSStatusItem image
  • Next by thread: text encodings
  • Index(es):
    • Date
    • Thread