Re: Getting a table to resize columns. I'm doing everything right but it's not working?
Re: Getting a table to resize columns. I'm doing everything right but it's not working?
- Subject: Re: Getting a table to resize columns. I'm doing everything right but it's not working?
- From: John Bishop <email@hidden>
- Date: Mon, 24 Apr 2006 15:02:59 -0500
"Theodore H. Smith" <email@hidden> said:
>How do you get an NSTableView to resize it's columns?
>
>Is there any mistake I could make that might inadvertantly stop it
>from doing the auto-resizing?
>Something is going on here but I don't know what.
>
Yes... it's possible that you've specified an autosave name for the
NSTableView, which causes column info and sizes to be written to your
preferences. If you change the configuration of the columns (different sizes,
more or fewer columns, etc.) without throwing out the old preferences, column
resizing won't work - at all or erratically - when you next run the
application. I can't believe how many times I've personally re-solved this
puzzle. I foresee it being a potential problem with a released product, too -
when I don't have easy access to the user's preferences to selectively trash
just the autosaved table configuration data... hmmmm.
Maybe this will help you with this "gotcha".
John
------------------------------------------------------------------
John Bishop <mailto:email@hidden>
Mulligan Software <http://www.mulligansoftware.com>
Mulligan's Golf Personal - Stats & Handicapping for the Mac Golfer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden