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

NSTableView [solved]


  • Subject: NSTableView [solved]
  • From: David Blanton <email@hidden>
  • Date: Sun, 22 Feb 2004 23:24:52 -0700

Original Post
--------------------------------------------------------------------------
Problem: NSTableView does not display scroll bars.

Archive says: This is a common problem. You must send a reloadData message
to the NSTableView for scroll bars to be displayed.

Result: The NSTableView is displayed with a scroll bar. It does get the
reloadData message as well as the setNeedsDisplay:YES message. There are
more rows in the table than can be displayed yet there is no knob in the
scroll bar.

Question: What the heck am I not doing?

Arrrgggg and thanks!

David Blanton
--------------------------------------------------------------------------
Solution
--------------------------------------------------------------------------
It was a matter of WHEN the reloadData message is sent. I was loading the
array in 'init' and and sending reloadData in 'awakeFromNib' because I
wanted everything ready when the view was displayed.

So I added a button 'Manual' and load the array and send reloadData when
clicked.

I learned something. Thanks to all.

DB
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSTableView [solved]
      • From: Scott Little <email@hidden>
  • Prev by Date: Re: NSTableView
  • Next by Date: Re: Speed comparison: compare:, methodForSelector: & CFNumberCompare()
  • Previous by thread: Re: bindings with NSView subclass
  • Next by thread: Re: NSTableView [solved]
  • Index(es):
    • Date
    • Thread