Re: Custom View Table Views
Re: Custom View Table Views
- Subject: Re: Custom View Table Views
- From: Mike Abdullah <email@hidden>
- Date: Tue, 25 Jul 2006 20:35:08 +0100
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@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden