• 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
Table Header-Style View for a Label
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Table Header-Style View for a Label
      • From: Laurent Cerveau <email@hidden>
  • Prev by Date: Re: Core Data and NSOperation
  • Next by Date: Core Data & IB in prefs pane ("Cannot perform operation without a managed object context")
  • Previous by thread: Re: Core Data and NSOperation
  • Next by thread: Re: Table Header-Style View for a Label
  • Index(es):
    • Date
    • Thread