Re: Table Header-Style View for a Label
Re: Table Header-Style View for a Label
- Subject: Re: Table Header-Style View for a Label
- From: Andrew Merenbach <email@hidden>
- Date: Fri, 28 Mar 2008 21:43:18 -0700
Hi, Laurent,
Thank you for your response! What you suggested is what I have been
doing, and it seems to work, but it still seems just a wee bit like a
kludge to me. I'll keep thinking about it. :)
Cheers,
Andrew
On Mar 28, 2008, at 3:00 PM, Laurent Cerveau wrote:
On Mar 28, 2008, at 8:52 PM, Andrew Merenbach wrote:
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.
I am not sure I understand everything but if you want to simply draw
something that looks like a NSTableHeaderView you can have a custom
view and draw a NSTableHeaderCell in its draw method. This allows
you to not have all the "other parts" of NSTableHeaderView and keep
it light.
laurent
_______________________________________________
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