Status toolbar item like Xcode and Instruments
Status toolbar item like Xcode and Instruments
- Subject: Status toolbar item like Xcode and Instruments
- From: David Catmull <email@hidden>
- Date: Mon, 14 Nov 2011 11:47:05 -0700
I'm interested in implementing a status display in my toolbar, similar to the LCD-style ones seen in Xcode 4 and Instruments. The challenge seems to be how to make it a full-height item with no label. If I make my custom view taller, it just makes the whole toolbar taller. Setting the label to nil or @"" just leaves the label area blank.
I had read* that Xcode uses sneaky hacks for its status display, and I was resigned to having to reproduce that approach. Then I noticed the one in Instruments, which behaves like a normal toolbar item in many respects, including the Customize sheet. This leads me to suspect there's a relatively non-messy way to implement this.
* <http://stackoverflow.com/questions/6169255/is-it-possible-to-draw-in-the-label-area-of-nstoolbar>
--
David Catmull
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