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
uncom...@uncommonplace.com


_______________________________________________

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