Table Header-Style View for a Label
Table Header-Style View for a Label
- Subject: Table Header-Style View for a Label
- From: Andrew Merenbach <email@hidden>
- Date: Fri, 28 Mar 2008 12:52:17 -0700
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
_______________________________________________
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