• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Status toolbar item like Xcode and Instruments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Implementing Full Screen for 10.7 but app should also run on 10.6
  • Next by Date: Re: Calling a Cocoa library from C
  • Previous by thread: Re: Implementing Full Screen for 10.7 but app should also run on 10.6
  • Next by thread: New/Update Cocoa Book
  • Index(es):
    • Date
    • Thread