Drawing grid in a TableView impossible ?
Drawing grid in a TableView impossible ?
- Subject: Drawing grid in a TableView impossible ?
- From: jean Bousquet <email@hidden>
- Date: Thu, 22 Aug 2002 16:01:10 +0200
I designed a TableView in IB (I use IB version 2.2 and system 10.1) and got
2 (related ?) problems with grid drawing :
1) I select show Grid in IB (TablesView info attributes) and choice a color
for the grid (of cause different from the background one)
The grid appear correctly in IB
I save the project, quit and reopen the project. Now grid is not displayed
by IB on the TableView template. To have it displayed again I have to
deselect then reselect the option show Grid. Strange but not a big problem.
The second is more boring (may be related to the first one ?)
2) In my app, grid never appear in TableView. To see what happens I add the
following code in the update part of the appl which force TableView to
reload data :
- (void)update
{
if ([list drawsGrid])
{
NSLog(@"drawsGrid enabled");
NSLog(@" color %@",[[list gridColor] description]);
NSLog(@" inter %f %f",[list intercellSpacing].width,[list
intercellSpacing].height);
}
[list reloadData];
}
and got the expected results :
"
drawsGrid enabled
color NSCalibratedRGBColorSpace 0.792715 0.811846 1 1
inter 3.000000 2.000000
"
but no grid at all on my screen.
Has any one an idea of what I do wrong ?
Thanks.
Jean
_______________________________________________
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.