Re: What's the right way to make the last (or only) table column fill the width of an NSTableView?
No, I wasn't aware of that, and I certainly don't find mention of it in the documentation for NSTableView or NSTableColumn. But tonight when I get home, I will try it! On 2010-01-11 23:53, Kyle Sluder wrote: On Mon, Jan 11, 2010 at 10:58 AM, Charles Jenkinscjenk...@tec-usa.com wrote: The ZIP Inspector program works as advertised, but I'm annoyed by the fact that the filenames shown in the Table View get truncated due to the width of their column, which does not resize no matter how big I make the Table View. (The Table View resizes with the window, and I've set the column's Max Width to 1.) I'm confused. This works out of the box for me on Snow Leopard. Drop an NSTableView in a window, set the autoresize mask, removed the second column, made the remaining column the width of the table view. Works like a charm. Perhaps you aren't aware that a column will only resize if it is already the width of the view? --Kyle Sluder ___ 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
Re: What's the right way to make the last (or only) table column fill the width of an NSTableView?
On Jan 12, 2010, at 8:00 AM, Charles Jenkins wrote: No, I wasn't aware of that, and I certainly don't find mention of it in the documentation for NSTableView or NSTableColumn. But tonight when I get home, I will try it! Please log documentation bugs (or use the documentation feedback form at the bottom of the doc pages) to provide feedback like this. It will help us make our documentation better. Thanks! corbin On 2010-01-11 23:53, Kyle Sluder wrote: On Mon, Jan 11, 2010 at 10:58 AM, Charles Jenkinscjenk...@tec-usa.com wrote: The ZIP Inspector program works as advertised, but I'm annoyed by the fact that the filenames shown in the Table View get truncated due to the width of their column, which does not resize no matter how big I make the Table View. (The Table View resizes with the window, and I've set the column's Max Width to 1.) I'm confused. This works out of the box for me on Snow Leopard. Drop an NSTableView in a window, set the autoresize mask, removed the second column, made the remaining column the width of the table view. Works like a charm. Perhaps you aren't aware that a column will only resize if it is already the width of the view? --Kyle Sluder ___ 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
What's the right way to make the last (or only) table column fill the width of an NSTableView?
I'm working on the examples in the (fantastic) Hillegass book. The ZIP Inspector program works as advertised, but I'm annoyed by the fact that the filenames shown in the Table View get truncated due to the width of their column, which does not resize no matter how big I make the Table View. (The Table View resizes with the window, and I've set the column's Max Width to 1.) In case it matters, I'm running on Snow Leopard. I'm surprised that when a Table View contains only one column, Apple didn't design it to automatically fill the view. I have messed with the table's autoresize settings in every way I can think of, but despite what the NSTableViewColumnAutoresizingStyle http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSTableView_Class/Reference/Reference.html#//apple_ref/doc/c_ref/NSTableViewColumnAutoresizingStyle settings' descriptions say, NONE of them changes the width of the column automatically. I have come up with a solution involving KVO, but it was so difficult that I feel it must not be correct. Anyone know of a combination of IB settings that will really, truly make the last (or only) table column really, truly expand to fit the width of the table view? ___ 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
Re: What's the right way to make the last (or only) table column fill the width of an NSTableView?
On 2010 Jan 11, at 10:58, Charles Jenkins wrote: Anyone know of a combination of IB settings that will really, truly make the last (or only) table column really, truly expand to fit the width of the table view? You must tell the column also. Inspect your Table Column in Interface Builder. In the Attributes pane, check the box Resizes with Table.___ 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
Re: What's the right way to make the last (or only) table column fill the width of an NSTableView?
Resizes with Table does not help. I knew there'd be no chance of getting the behavior I want without that, so I never unchecked it. I'm sorry I forgot to mention that in my original post. On 2010 Jan 11, at 10:58, Charles Jenkins wrote: Anyone know of a combination of IB settings that will really, truly make the last (or only) table column really, truly expand to fit the width of the table view? You must tell the column also. Inspect your Table Column in Interface Builder. In the Attributes pane, check the box Resizes with Table. ___ 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/cjenkins%40tec-usa.com This email sent to cjenk...@tec-usa.com ___ 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
Re: What's the right way to make the last (or only) table column fill the width of an NSTableView?
On 12/01/2010, at 12:20 PM, Charles Jenkins wrote: Resizes with Table does not help. I knew there'd be no chance of getting the behavior I want without that, so I never unchecked it. I'm sorry I forgot to mention that in my original post. For me I find that a column sizing sequential works to size only a particular column as the table view expands. All my columns are set to resize with table, but some have the min and max limits set the same so that they are effectively not resizable. The column I do want resized has sensible and different minimum/maximum values. Bear in mind that the user can reorder columns, but only some of them are resizable. If a resizable column ends up on the right, it resizes as it should. --Graham ___ 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