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

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


  • Follow-Ups:
    • Re: What's the magic with NSTableView cornerView ?
      • From: Nygard Steve <email@hidden>
  • Prev by Date: Re: Sorting without a key
  • Next by Date: How to View the end Row of the NSTableView without scrolling.
  • Previous by thread: Re: Sorting without a key
  • Next by thread: Re: What's the magic with NSTableView cornerView ?
  • Index(es):
    • Date
    • Thread