Skip navigation.
 
mlTable Header-Style View for a Label
FROM : Andrew Merenbach
DATE : Fri Mar 28 20:52:17 2008

Hi, all,

I would like to make a header view that looks like an 
NSTableHeaderView (i.e., with the gradient of such a table header 
view) for an NSTextView and possibly an NSCollectionView.  This view 
would label the view in question, but also would look like a part of 
it by virtue of being "attached."  This appears to be nonstandard, of 
course, but I feel that it would be useful -- and it's not a gadget of 
some sort that has any user interactivity, so I don't feel that it 
would be that confusing.

Additionally, Xcode has this interesting interface element in several 
places.  First, it is visible in the script NSTextView in the project 
build phase for scripts -- check out the "General" tab.  Also, it 
makes use of this in the Xcode documentation viewer, for the arrow 
buttons.  Finally, it does this in the source-code viewer.

What is this element?  It appears to be a table header view, to all 
appearances, but I can't figure out how to duplicate it without 
drawing an NSTableHeaderView in the background -- and that seems like 
a hackish kludge.

I *feel* that this should be easy, but have not yet found a good 
solution to it.  I could certainly file an enhancement request, but if 
there's a good way to do it -- or a good reason not to do it -- and 
even if it doesn't look *identical* to a table header view, I'll take 
that into account, too.

Cheers,
   Andrew

Related mailsAuthorDate
mlTable Header-Style View for a Label Andrew Merenbach Mar 28, 20:52
mlRe: Table Header-Style View for a Label Laurent Cerveau Mar 28, 23:00
mlRe: Table Header-Style View for a Label Andrew Merenbach Mar 29, 05:43