• 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: No Title Bar on NSPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No Title Bar on NSPanel


  • Subject: Re: No Title Bar on NSPanel
  • From: Rob Keniger <email@hidden>
  • Date: Fri, 5 Jun 2009 12:33:55 +1000


On 05/06/2009, at 9:20 AM, John Ku wrote:

Hello all! Is there a way to subclass NSPanel and turn off the title bar on
it?


You can't do this. The only way to get a window without a title bar is to create an NSWindow using - initWithContentRect:styleMask:backing:defer: and passing in NSBorderlessWindowMask.

NSPanels use a private style mask which is not compatible with NSBorderlessWindowMask.

You will need to do some work in your own NSWindow subclass to get the behaviour you are looking for.

--
Rob Keniger



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >No Title Bar on NSPanel (From: John Ku <email@hidden>)

  • Prev by Date: Re: Validating a NSSegmentedControl in a toolbar
  • Next by Date: bitmapImageRepForCachingDisplayInRect and focus rings?
  • Previous by thread: Re: No Title Bar on NSPanel
  • Next by thread: Re: No Title Bar on NSPanel
  • Index(es):
    • Date
    • Thread