FROM : Mike Abdullah
DATE : Tue Jul 25 21:35:08 2006
The biggest problem I've found is how NSCell works. The table view
only uses one NSCell to do its drawing. Rather than having a cell
for each row of the table, it has a single cell that is copied and
released as appropriate.
Obviously, what you want to do instead is have an instance of your
cell for each row of the table. If you're using 10.4 only, a good
workaround may be to use the cellForRow: method.
Mike
On 24 Jul 2006, at 8:57PM, 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?
>
> --
> Thom McGrath
> The ZAZ Studios
> <http://www.thezaz.com/> AIM: thezazstudios
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/mike.abdullah%
> 40gmail.com
>
> This email sent to mike.<email_removed>
DATE : Tue Jul 25 21:35:08 2006
The biggest problem I've found is how NSCell works. The table view
only uses one NSCell to do its drawing. Rather than having a cell
for each row of the table, it has a single cell that is copied and
released as appropriate.
Obviously, what you want to do instead is have an instance of your
cell for each row of the table. If you're using 10.4 only, a good
workaround may be to use the cellForRow: method.
Mike
On 24 Jul 2006, at 8:57PM, 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?
>
> --
> Thom McGrath
> The ZAZ Studios
> <http://www.thezaz.com/> AIM: thezazstudios
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/mike.abdullah%
> 40gmail.com
>
> This email sent to mike.<email_removed>
| 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

