• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Drawing grid in a TableView impossible ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing grid in a TableView impossible ?


  • Subject: Re: Drawing grid in a TableView impossible ?
  • From: jean Bousquet <email@hidden>
  • Date: Sat, 24 Aug 2002 12:21:33 +0200

le 22/08/02 22:32, Mike Shields ` email@hidden a icrit :

> It's a bug.
>
> In awakeFromNib or someplace like that
>
> [list setDrawsGrid:NO];
> [list setDrawsGrid:YES];
>
> Mike
>
> On Thursday, August 22, 2002, at 08:01 AM, jean Bousquet wrote:
>
>> 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.
>
>
Many thanks Mike.
As a newbie I spent hours to try to imagine what i did wrong
Many thanks again
PS : This bug is probably fixed at least with Mac OS X 10.2 isn't ?
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.

References: 
 >Re: Drawing grid in a TableView impossible ? (From: Mike Shields <email@hidden>)

  • Prev by Date: Re: Can I subclass NSMutableArray?
  • Next by Date: Re: HotKeys in Cocoa
  • Previous by thread: Re: Drawing grid in a TableView impossible ?
  • Next by thread: Re: Drawing grid in a TableView impossible ?
  • Index(es):
    • Date
    • Thread