• 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: Trasparent Window with Opaque Text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trasparent Window with Opaque Text


  • Subject: Re: Trasparent Window with Opaque Text
  • From: Robert Clair <email@hidden>
  • Date: Thu, 14 Oct 2004 08:44:38 -0400

In your window's init method:


[self setOpaque: NO];
[self setBackgroundColor: [NSColor clearColor]];


in your view's drawRect

[[NSColor clearColor] set];
NSRectFill( inRect );
[myOpaqueColor set];

draw your text


Bob Clair

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Prev by Date: Re: Trasparent Window with Opaque Text
  • Next by Date: Re: 2) Trasparent Window with Opaque Text
  • Previous by thread: Re: Trasparent Window with Opaque Text
  • Next by thread: SafariSource (Safari syntax coloring)
  • Index(es):
    • Date
    • Thread