Re: Problem with NSOutlineView outlineView:willDisplayCell:forTableColumn:item: delegate method
Re: Problem with NSOutlineView outlineView:willDisplayCell:forTableColumn:item: delegate method
- Subject: Re: Problem with NSOutlineView outlineView:willDisplayCell:forTableColumn:item: delegate method
- From: Bill Cheeseman <email@hidden>
- Date: Wed, 26 May 2004 05:58:30 -0400
on 2004-05-26 5:08 AM, Tim Hewett at email@hidden wrote:
>
But
>
when
>
selecting row 7 after row 4, willDisplayCell: is called for rows 4, 5,
>
6 then
>
7 but each time displaying the cell only in row 7.
The -willDisplayCell:forTableColumn:row: delegate method is called whenever
the outline view thinks it needs to display a cell. Not just when you select
a cell, but also, for example, when the user scrolls some more rows into
view or enlarges the window to make more cells visible. I don't know what
the actual algorithm is, but I do know that this delegate method is called
very frequently when a user is mousing around in the outline view, sometimes
when it doesn't seem as though it really needs to redisplay a cell. Ditto
for table views.
It is up to you to notice which cell is being displayed on the current call
to this delegate method, and to provide results accordingly. It sounds like
you aren't paying any attention to the row: parameter value that is passed
into the delegate method. Ditto for the forTableColumn: parameter value.
Apologies if I've misunderstood you.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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.