• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom View Table Views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Custom View Table Views
      • From: Corbin Dunn <email@hidden>
References: 
 >Custom View Table Views (From: Thom McGrath <email@hidden>)

  • Prev by Date: ZIP archives
  • Next by Date: Re: ZIP archives
  • Previous by thread: Re: Custom View Table Views
  • Next by thread: Re: Custom View Table Views
  • Index(es):
    • Date
    • Thread