Re: NSTableView in code
Re: NSTableView in code
- Subject: Re: NSTableView in code
- From: Frank Midgley <email@hidden>
- Date: Mon, 22 Nov 2004 20:08:05 -0600
On Nov 22, 2004, at 7:52PM,
陳銘崧 a.k.a. James Chen wrote:
I did a little experiment and then I find out NSTableView works better with NSScrollView
I did the things just like you mentioned. Yes, the table disappear.
But after I put the table within a NSScrollView, everything comes back.
I can't figure out why that is.
Hope someone could point me out.
A table view does not draw its own header view (which contains the header cells) or corner view. This is done by the scroll view. Any NSView sub-class, not just tables, can return a view in -headerView or -cornerView and NSScrollView will arrange them in the right place. This is nice when your views are on screen but can be a real pain when you need to print.
-Frank
------------------------------------
Frank M. Midgley
email@hidden
http://homepage.mac.com/knarf/
_______________________________________________
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