Re: NSTableView cornerView
Re: NSTableView cornerView
- Subject: Re: NSTableView cornerView
- From: Keith Renz <email@hidden>
- Date: Tue, 11 Jan 2005 20:08:55 -0500
How can i have an NSTableView not draw its corenerView?
I'm not sure why you wouldn't want to draw something there assuming
your NSTableView's headers are showing. Drawing nothing will leave an
empty background which will look odd. If nothing else, the corner view
ought to at least match the headers.
Regardless, you can set the corner view to nil.
[yourTableView setCornerView: nil];
This has the side effect of positioning the vertical scroll bar to the
top of the table view; probably not what you want.
You can also subclass NSView, override drawRect: and do as you wish --
nothing, in your case. If your table view originates in a nib file, you
can set its corner view with -setCornerView: in various places after
the nib is unarchived (-awakeFromNib, -windowDidLoad, etc.). Your
NSView subclass should match the width of a scroll bar and the height
of your table view's header. See NSTableView -setCornerView: for more
info.
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