NSTableView [solved]
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.