• 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: transparent windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: transparent windows


  • Subject: Re: transparent windows
  • From: Yann Bizeul <email@hidden>
  • Date: Mon, 27 Sep 2004 15:16:55 +0200

Juste create a subclass of NSWindow, and override initialization like this :

- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag
{
self = [ super initWithContentRect:contentRect styleMask:NSBorderlessWindowMask backing:backingType defer:NO ];
[ self setBackgroundColor: [ NSColor clearColor]];
return self;
}


--
Yann Bizeul - yann at tynsoe.org
Cocoa Developer, visit my projects at :
http://projects.tynsoe.org/
Le 23 sept. 04, à 15:07, gojellybelly a écrit :

In a program named Taco html edit, they have an option to make the windows content window transparent instead of the entire title bar and buttons menu, can anyone share this bit of code to preform this ?

_______________________________________________
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


_______________________________________________ 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
References: 
 >transparent windows (From: gojellybelly <email@hidden>)

  • Prev by Date: Move objects above other objects in NSView
  • Next by Date: Re: Move objects above other objects in NSView
  • Previous by thread: transparent windows
  • Next by thread: NSArrayController One-To-Many Question
  • Index(es):
    • Date
    • Thread