• 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: What's the magic with NSTableView cornerView ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's the magic with NSTableView cornerView ?


  • Subject: Re: What's the magic with NSTableView cornerView ?
  • From: Nygard Steve <email@hidden>
  • Date: Thu, 10 May 2007 14:43:07 -0600


On May 10, 2007, at 4:29 AM, Eric MORAND wrote:

Can someone explain what kind of magic occurs when an instance of NSTableView is set as the document view of a scroll view ? The table corner view seems to be added to the scroll view, one way or another, and I can't put my finger on the way it is accomplished.

From <http://developer.apple.com/documentation/Cocoa/Conceptual/ TableView/Concepts/TableParts.html>:


"During window layout, the scroll view retrieves your custom views using the cornerView and headerView methods of NSTableView and tiles them along with the scrollers and document view."

It is hard-coded in the NSScrollView implementation ? Something like :

You can use this in other views, just implement those two methods to return the appropriate views.


--
Steve

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >What's the magic with NSTableView cornerView ? (From: Eric MORAND <email@hidden>)

  • Prev by Date: Re: NSMenu not displaying items added programmatically
  • Next by Date: Re: Printing with exotic margins (a basic example)
  • Previous by thread: What's the magic with NSTableView cornerView ?
  • Next by thread: How to View the end Row of the NSTableView without scrolling.
  • Index(es):
    • Date
    • Thread