Skip navigation.
 
mlRe: Custom View Table Views
FROM : Shawn Erickson
DATE : Mon Jul 24 22:03:28 2006

On Jul 24, 2006, at 12:57 PM, Thom McGrath wrote:

> Can't find any useful information elsewhere (apple docs, list 
> archives, google, examples), so here I go again.
>
> I'm trying to use a custom view cell in my NSTableView, similar to 
> Backup.app where I have lots of data in a single cell with 
> different styles and whatnot.
>
> I've been able to figure out that I'll need an NSCell, and I've 
> informed the NSTableView to use this NSCell subclass for this 
> column. Since I do not need interaction, It's an NSCell rather than 
> an NSActionCell. Poking around inside Backup.app has been 
> fruitless. I've also successfully modified the data contained 
> within the NSCell. My issue comes in when I need to draw the view. 
> How do I attach an NSView to it to do the drawing?


Override -[NSCell drawInteriorWithFrame:inView:].

-Shawn

Related mailsAuthorDate
mlCustom View Table Views Thom McGrath Jul 24, 21:57
mlRe: Custom View Table Views I. Savant Jul 24, 22:01
mlRe: Custom View Table Views Shawn Erickson Jul 24, 22:03
mlRe: Custom View Table Views Mike Abdullah Jul 25, 21:35
mlRe: Custom View Table Views Corbin Dunn Jul 26, 00:41
mlRe: Custom View Table Views Mike Abdullah Jul 26, 01:24
mlRe: Custom View Table Views Chris Suter Jul 26, 02:31
mlRe: Custom View Table Views Corbin Dunn Jul 26, 05:19