• 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: changing the style mask of an NSWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: changing the style mask of an NSWindow


  • Subject: Re: changing the style mask of an NSWindow
  • From: Damien <email@hidden>
  • Date: Wed, 29 Jan 2003 15:24:15 +0100

On Wednesday, Jan 29, 2003, at 10:52 Europe/Stockholm, Damien wrote:

I have a normal NSWindow and I want to change it in a window that has no title bar.
Is it possible programmatically? I mean ... without creating another NSWindow in which I would copy the content of the original window.
No, you can only set the style mask of a window when you create it, not dynamically (it's in the documentation).

Ok.
My window is a window built in Interface Builder, how can I change the style mask of this window?
There's no method such as initWithWindowNibName:withStyleMask or something in NSWindowController. And it seems that I can't do that in IB because I don't see any option to remove the title bar (I can remove miniaturize, close, and resize controls, but that's not enough)

So the only solution I see is to create a new NSWindow with initWithContentRect:styleMask and then move the contentView from the nib window to the new one (with setContentView). But I don't want that solution :) I HAVE to use the original nib window. Is that possible?

damien
_______________________________________________
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.

  • Follow-Ups:
    • Re: changing the style mask of an NSWindow
      • From: Rakesh Pandey <email@hidden>
References: 
 >Re: changing the style mask of an NSWindow (From: j o a r <email@hidden>)

  • Prev by Date: Re: Setting the Default Browser?
  • Next by Date: Re: changing the style mask of an NSWindow
  • Previous by thread: Re: changing the style mask of an NSWindow
  • Next by thread: Re: changing the style mask of an NSWindow
  • Index(es):
    • Date
    • Thread