Re: No Title Bar on NSPanel
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