Re: Utility/Floating window with titlebar on left side
Re: Utility/Floating window with titlebar on left side
- Subject: Re: Utility/Floating window with titlebar on left side
- From: Nick Beadman <email@hidden>
- Date: Mon, 22 Sep 2008 15:55:19 -0700
Eric,
On Sep 22, 2008, at 2:08 pm, Eric Schlegel wrote:
On Sep 22, 2008, at 12:03 PM, Nick Beadman wrote:
At this point I think the only thing to do is to create a
borderless window and create my own left side title bar (using +
[NSWindow standardWindowButton:] to get small standard window
buttons). If I manage to implement such a thing I will try to get
permission to open source it.
You may also want to look into the HITheme API, part of the
HIToolbox framework, which allows you to draw the window frame using
the same code that Carbon and Cocoa use to draw their windows. You'd
pass kThemeUtilitySideWindow as the window type in
HIThemeWindowDrawInfo.windowType field to specify a left-side window
frame. You would also need to draw the window widgets yourself using
HIThemeDrawTitleBarWidget.
According to <http://www.carbondev.com/site/?page=64-bit+Carbon>:
HITheme is currently undecided. We did hear from multiple developers
at the conference today who use HITheme and would like to see it in
64-bit.
-eric schlegel
Has the fate of HITheme has been decided, and it is going to be the
theme drawing API for OS X [1] going forward? The only documentation I
have found is the header HITheme.h and nowhere in there is mentioned
it being a 32-bit only API. Given that it uses Quartz parameters this
makes sense but I want to be sure before I spend time working on an
under-documented API, especially as it is in Carbon framework. Looking
at HIView.h it appears to be a safe because those API are documented as:
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework
[32-bit only]
Thanks,
Nick
[1] Note I said OS X, not Cocoa, not Carbon and not Mac OS X, although
I will take an answer for any and all of those technologies :-).
--
Nick Beadman
email@hidden
(sent from my mailing list account, email@hidden)
_______________________________________________
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