Re: Tall NSTableView Column Headers
Re: Tall NSTableView Column Headers
- Subject: Re: Tall NSTableView Column Headers
- From: Ryan Stevens <email@hidden>
- Date: Fri, 22 Oct 2004 07:45:10 -0700
On Oct 21, 2004, at 6:22 PM, Keith Renz wrote:
I have been trying to do the same thing. I tried subclassing
NSTableHeaderView and got the same results as you did. I figured
NSTableHeaderCell was my next step.
I subclassed NSTableHeaderCell and fussed with it for hours. There's
no way I can see to hook into the standard drawing behavior. If you
look at the stack frame in the debugger, NSTableHeaderCell's standard
drawing is calling a bunch of private theme methods. Just as an
exercise, I overrode the 3 drawing methods mentioned in my previous
post and they do work. Unfortunately, you've got to fill in the
drawing yourself. I did some rudimentary drawing and it all worked,
but I want the standard look!
Can you draw the cell into an image and then scale that to fit? If that
works you'd probably want to use a second cell to layout your text
but...maybe?
It looks like the corner views also need to be changed, but that's a
relatively small thing.
Exact same issues with the corner view.
I'll be interested to know if you find anything further, and I'll
certainly report anything I learn as well.
I'll do the same.
It occurs to me that this could also be something that should be put
in an enhancement request to Apple.
I agree and will submit a request.
Keith
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden