• 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
Re: NSTableView cornerView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSTableView cornerView (From: email@hidden)

  • Prev by Date: Re: custom focus ring ?
  • Next by Date: Example needed to show how to overlay images upon a single view
  • Previous by thread: NSTableView cornerView
  • Next by thread: Example needed to show how to overlay images upon a single view
  • Index(es):
    • Date
    • Thread