ok,

I think now I can describe my problem with a little more detail;

I have a table view which has only one column.

Now when the user resizes this column expanding it to the right, the horizontal scroll bar appears and everything is fine.


But I want to size the column, depending on the entries.
So that the user doesn't have to do the resizing manually-

How can I say the app;
look at how many characters the entries have, and then expand the column-width so that horizontal scroll bars appear, and the user is able to read whole entries by using the horizontal scroll bar.



thanks for any hints!


Am 09.06.2009 um 17:38 schrieb Shlok Datye:

I assume you have set your scroll view to automatically hide and show its scrollbars as needed.

When exactly do the scrollbars not appear but should? Only when the app first launches? Does the problem remain if you resize the window slightly (and the scroll view is set to resize with the window)?

Can you post a sample project that replicates your problem?

Shlok Datye
Coding Turtle
http://codingturtle.com


On 09.06.2009, at 01:57, Martin Batholdy wrote:

hi,


I have set up a NSTableView in the Interface Builder.
I have connected this with a NSObject Outlet.
And I have set the data source of the NSTableView to the NSObject.

The problem I have is that there don't appear any scroll bars even when the content doesn't fit.

I have a method called "delete" which deletes the selected entry when a button is pressed.
In this method there is a [TableOutlet reloadData]; call.

After deleting an entry there are appearing at least vertical scrollbars.


I tried to add the reloadData call to the init call.
I also tried noteNumberOfRowsChanged like suggested in some forum postings I found ...


But nothing happens.


Can someone help me on this issue?
Thanks!

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to