RE: NSTableView
RE: NSTableView
- Subject: RE: NSTableView
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Wed, 29 May 2002 11:06:44 -0400
From the NSTableView docs (by the way, I think this exact passage was quoted
on this list in the last week, but I could be wrong):
tableView:willDisplayCell:forTableColumn:row:
- (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell
forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex
Informs the delegate that aTableView will display the cell at rowIndex in
aTableColumn using aCell. The delegate can modify the display attributes of
aCell to alter the appearance of the cell. Because aCell is reused for every
row in aTableColumn, the delegate must set the display attributes both when
drawing special cells and when drawing normal cells.
>
-----Original Message-----
>
From: email@hidden
>
[mailto:email@hidden]On Behalf Of Joe Morris
>
Sent: Wednesday, May 29, 2002 8:28 AM
>
To: Matthew Johnson
>
Cc: email@hidden
>
Subject: Re: NSTableView
>
>
>
I don't have the code in front of me, but what you need to do is
>
use one of the delegation methods (the one that gets called right
>
before text is drawn in the cell), and check whether whatever
>
you're going to draw in the cell contains your criteria, and then
>
if it does change the font of the cell. I'm sorry, I know this
>
isn't amazingly useful, but I figured better to answer now rather
>
than wait longer till when I think of it and have the code in
>
front of me. I'll still try to get code to you at some point,
>
but maybe someone else here will know what I'm talking about. ;-)
>
>
-Joe
>
>
On Tuesday, May 28, 2002, at 03:08PM, Matthew Johnson
>
<email@hidden> wrote:
>
>
>Hi,
>
>
>
>If I had a table that had a list of names in it and I wanted all
>
the names that contained a 'd' to appear red instead of
>
>black like the rest of the names.
>
>
>
>How would I do that?
>
>
>
>Matt
>
>_______________________________________________
>
>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.
_______________________________________________
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.
_______________________________________________
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.