FROM : Stephane Sudre
DATE : Tue Apr 19 17:50:41 2005
On 19 avr. 05, at 16:37, <email_removed> wrote:
> Hello out there,
>
> i have a NSTableView with three columns. Does someone know a
> possibility to mark a single cell for example red (or another fancy
> effect:-)) without erasing the text inside?
> Moreover is there a possibilty to avoid the mark of a row throughout
> all columns.
> It would be very helpful to get a full code snippet(obj.C / Cocoa).
Change the background color of this cell in the delegate method:
- (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell
forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex;
you may need to enable the drawing of the background for this cell.
DATE : Tue Apr 19 17:50:41 2005
On 19 avr. 05, at 16:37, <email_removed> wrote:
> Hello out there,
>
> i have a NSTableView with three columns. Does someone know a
> possibility to mark a single cell for example red (or another fancy
> effect:-)) without erasing the text inside?
> Moreover is there a possibilty to avoid the mark of a row throughout
> all columns.
> It would be very helpful to get a full code snippet(obj.C / Cocoa).
Change the background color of this cell in the delegate method:
- (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell
forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex;
you may need to enable the drawing of the background for this cell.
| Related mails | Author | Date |
|---|---|---|
| nutrition1 | Apr 19, 16:37 | |
| Stephane Sudre | Apr 19, 17:50 | |
| Power Mac User | Apr 19, 22:00 |






Cocoa mail archive

