Re: NSTableView with scrollbars does not update correctly
Re: NSTableView with scrollbars does not update correctly
- Subject: Re: NSTableView with scrollbars does not update correctly
- From: Dan Bernstein <cocoa-dev%email@hidden>
- Date: Mon, 10 Mar 2003 17:10:36 +0200
This seems like a too frequently asked question on cocoa-dev. You must
send the NSTableView a reloadData: message whenever the data changes.
If the NSTableView is initialized and awakened from the nib before your
data is fully initialized, then you should send a reloadData: right
after data initialization.
-- Dan
On Monday, March 10, 2003, at 04:46 PM, Daniel Aarno wrote:
I'm working on a application using the NSTableView to display a
mapping between key-value pairs. The TableView is inside a NSTabView
inside an NSWindow. When I display the window using [theWindow
makeKeyAndOrderFront : sender]; the window is brought to the front and
displayed, however the NSTableView does not display its scrollbars as
it should (since there are more objects in it than can be displayed).
If I resize the window (and hence the NSTableView) the scrollbars
appear. How can I solve this, I've done similar things in Java before
and not experienced any problem.
/Bishop
--
"The world is not an evil place because of those who do evil, but
rather because of those who sit back and let it happen." - Albert E.
Einstein
_______________________________________________
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.
_______________________________________________
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.