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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to