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
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 mails | Author | Date |
|---|---|---|
| Thom McGrath | Jul 24, 21:57 | |
| I. Savant | Jul 24, 22:01 | |
| Shawn Erickson | Jul 24, 22:03 | |
| Mike Abdullah | Jul 25, 21:35 | |
| Corbin Dunn | Jul 26, 00:41 | |
| Mike Abdullah | Jul 26, 01:24 | |
| Chris Suter | Jul 26, 02:31 | |
| Corbin Dunn | Jul 26, 05:19 |






Cocoa mail archive

