Re: What's the magic with NSTableView cornerView ?
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