Re: Windows without traffic lights
Re: Windows without traffic lights
- Subject: Re: Windows without traffic lights
- From: Jonathan Hendry <email@hidden>
- Date: Fri, 10 Aug 2001 18:08:44 -0500
On Thursday, August 9, 2001, at 01:25 , Adam Knight wrote:
You can disable them in IB, but you cannot eliminate them without
writing a
custom window.
You can write a custom window class, or you can initialize the
window manually, rather than using IB.
NSWindow *myWindow;
myWindow = [[NSWindow alloc] initWithContentRect:(NSRect)contentRect
styleMask:(unsigned int)aStyle
backing:(NSBackingStoreType)bufferingType
defer:(BOOL)flag
screen:(NSScreen *)screen];
with styleMask something like (NSTitledWindowMask |
NSResizableWindowMask)
If you subclass, override that method and invoke the superclass
implementation, passing all the arguments on except use your
preferred styleMask.
Then in IB just set the class of the window to your subclass.