• 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: NSTableView in code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSTableView in code (From: email@hidden)
 >Re: NSTableView in code (From: 陳銘崧 a.k.a. James Chen <email@hidden>)

  • Prev by Date: Re: Cocoa program to Activate/Deactivate Screensaver
  • Next by Date: NSImage setName
  • Previous by thread: Re: NSTableView in code
  • Next by thread: Again: Using mouseEntered and mouseExited
  • Index(es):
    • Date
    • Thread