Re: Full-Height Toolbar Item
Re: Full-Height Toolbar Item
- Subject: Re: Full-Height Toolbar Item
- From: David Catmull <email@hidden>
- Date: Fri, 27 Jan 2012 09:51:12 -0700
On Jan 26, 2012, at 9:03 PM, Mark Alldritt <email@hidden> wrote:
> I'm looking for a way to make a view-based Toolbar Item that occupies the full height of the toolbar (i.e. including the space normally reserved for the toolbar item's label). Xcode 4 does this for its "status" display, and I have a similar need in my application. The NSToolbar and NSToolbarItem definitions don't appear to make this possible, but perhaps there is something I've overlooked.
I've looked into this too, and haven't found an answer yet. According to this article, Xcode used to use a floating window trick:
http://stackoverflow.com/questions/6169255/is-it-possible-to-draw-in-the-label-area-of-nstoolbar
..but it doesn't anymore. Also note that Instruments has a full-height toolbar item, and that toolbar is fully customizable, so whatever tricks they're using they were able to make it behave like a normal toolbar item - cmd-draggable, in customize sheet, etc.
_______________________________________________
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