• 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: Shawn Erickson <email@hidden>
  • Date: Mon, 24 Jul 2006 13:03:28 -0700


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
_______________________________________________
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


References: 
 >Custom View Table Views (From: Thom McGrath <email@hidden>)

  • Prev by Date: Re: Custom window with small stoplight
  • Next by Date: Re: Custom window with small stoplight
  • Previous by thread: Re: Custom View Table Views
  • Next by thread: Re: Custom View Table Views
  • Index(es):
    • Date
    • Thread