• 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: Windows without traffic lights
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • OmniFrameworks
      • From: Mark T <email@hidden>
References: 
 >RE: Windows without traffic lights (From: "Adam Knight" <email@hidden>)

  • Prev by Date: Re: Cocoa downgrade from openstep?
  • Next by Date: Re: Cocoa downgrade from openstep?
  • Previous by thread: RE: Windows without traffic lights
  • Next by thread: OmniFrameworks
  • Index(es):
    • Date
    • Thread