Re: NSWindow title bar view height
Re: NSWindow title bar view height
- Subject: Re: NSWindow title bar view height
- From: Jens Alfke <email@hidden>
- Date: Fri, 09 Sep 2011 13:54:22 -0700
On Sep 9, 2011, at 11:41 AM, Torsten Curdt wrote:
> I am wondering what could be the best way of creating a NSWindow that
> has a bigger title bar - similar to the AppStore app or iCal (to add
> some other NSViews). A project I found doing just that feels a little
> hack'ish
I have never seen a non-hackish way to tweak the title bar in such a way, unfortunately. There are some methods to access and adjust the standard buttons, but the layout and drawing of the title bar are done by undocumented internal classes.
(If you want to see real hackish, you should look at the code Chromium uses to manage its fancy windows with the tabs in the title bar. It works, and I don’t know of any better way to do what it’s doing, but it’s quite scary.)
—Jens_______________________________________________
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