What's the magic with NSTableView cornerView ?
What's the magic with NSTableView cornerView ?
- Subject: What's the magic with NSTableView cornerView ?
- From: Eric MORAND <email@hidden>
- Date: Thu, 10 May 2007 12:29:38 +0200
Hi list,
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.
It is hard-coded in the NSScrollView implementation ? Something like :
- (void)setDocumentView:(NSView *)aView
{
[...]
if ( [aView isKindOfClass:[NSTableView class]] )
{
[self addSubview:[aView cornerView]];
}
[...]
}
I'm trying to implement a timeline view, encapsulated in a scroll
view, and would like to have a corner view, just like in GarageBand.
Thanks for your help,
Eric.
_______________________________________________
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