I am working on the ODBCkit's Query Tool to make it work across a wide variety 
of data sources - so far all the major commercial DB's, Firebird, MySQL and 
even SQLite! Got an ODBC target and test DB you'd like to test? Throw it my way!

One problem that's come up in a couple of different places is that many SQL 
data types are fixed-width. I ask the recordset for the width, but it lies - it 
says 255 chars, but in fact there's only maybe 25 characters actually in the 
field. It is also surprisingly common to find numbers held in huge fixed-char 
fields. When I space out my TableView based on what the DB tells me, I end up 
with lots of whitespace.

I notice that *after* the DataSource is done setting up and the data is in the 
display, double-clicking the "divider line" in the header gives me perfect 
results. Is there a way to simulate that double-click in code? Ideally I'd like 
to find out what the width would be if I did the action, then adjust it for 
max/min sizes in the code.

Thanks!

p.s. First Cocoa project in years. Holy smokes XCode got a lot better since I 
last looked. That and this SSD rocks.
_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to