• 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: Applying Style Masks to IB Windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applying Style Masks to IB Windows


  • Subject: Re: Applying Style Masks to IB Windows
  • From: Vince DeMarco <email@hidden>
  • Date: Mon, 15 Jul 2002 09:45:10 -0700

Create the window in IB, then assign the window in IB to your own class, and over ride the designated initalizer for NSWindow

- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag screen:(NSScreen *)screen;


This works for NSWindow, because IB doesn't archive and NSWindow class, instead we archive a place holder.

vince

On Monday, July 15, 2002, at 03:48 AM, Jeremy Dronfield wrote:

Is there any way to apply a style mask such as NSBorderlessWindowMask to windows created in Interface Builder? Re-creating the window programmatically and then giving it the contentView from the IB window seems a ridiculously tortuous way of doing it, but it's the only way I can work out from the documentation. What I'd like is a nice simple method like [[self window] setStyleMask: NSBorderlessWindowMask], but there isn't one.
- Jeremy.
_______________________________________________
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.
_______________________________________________
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: 
 >Applying Style Masks to IB Windows (From: Jeremy Dronfield <email@hidden>)

  • Prev by Date: documentation tools?
  • Next by Date: Re: Intercepting Some Keyboard Events for NSTextView
  • Previous by thread: Applying Style Masks to IB Windows
  • Next by thread: Multiples NSDocumentController's ?
  • Index(es):
    • Date
    • Thread