NSTableView corrupts the last column
NSTableView corrupts the last column
- Subject: NSTableView corrupts the last column
- From: John Nairn <email@hidden>
- Date: Wed, 15 Oct 2003 09:23:52 -0600
I have NSTableView in right half of split view. All works fine, but
whenever the window is resized or the split view is resized and the
last column is visible, the NSTableView automatically resizes the last
column to fill all remaining space. It continuously posts
NSTableViewColumnDidResizeNotification's during the size change. This
behavior leads to two bad problems:
1. When reducing the window size the size of the last column shrinks
down to a few pixels. It can no longer be viewed by scrolling and I
have to scroll to edge and then enlarge the window (which resizes the
oclumn again) to see it all (i.e., it takes two annoying steps to
reveal it again).
2. If I manually reduce the last column, sometimes (but not always) it
will be left alone but then the table header cells do not draw
correctly. They draw OK over actual columns but there is ugly white gap
between last table cell end scroll bars.
Perhaps this is planned NSTableView behavior, but in my opinion, the
user should decide when to resize columns by deliberately resizing or
dragging of columns; resizing windows or split panes should not lead to
unexpected column size changes. I suspect Apple agrees because the
NSTableView in the Finder's List View works exactly as I want my table
to work. The last column size stays the way you set it no matter how
you resize the window. You change its size by the proper method
dragging columns.
How can I make the columns in my table work like the table in Finder's
list view? I would think that would be the default behavior?
----------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page:
http://www.mse.utah.edu/~nairn
_______________________________________________
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.