• 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: Complex NSTableView cell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Complex NSTableView cell


  • Subject: Re: Complex NSTableView cell
  • From: Mike Abdullah <email@hidden>
  • Date: Sun, 21 May 2006 10:16:05 +0100

It is possible to do some subclassing so that your cell contains an NSTableView or other views.

However, this can have very serious performance implications. How many items do you have in this overall table? Because once you start getting into the mid double figures, you're going to have a lot NSViews in you window, and Apple recommends a maximum of around 100 per window.

In your case though, it sounds like it would be relatively easy to subclass NSTextFieldCell so that it draws a list of values.

Mike.

On 21 May 2006, at 03:57AM, Doug Knowles wrote:

Hi,

I need to implement a table cell that will display an arbitrary number
(well, zero to five or so) of items in a list as the "value" in a
column.  (I'm obviously planning on using the new variable height
capability of NSTableView.)

My question is what approach should I take to implement the cell.  I'm
thinking an override of NSCell is an obvious starting point, and I
need the capabilities of NSMatrix (or maybe even an embedded
NSTableView) to render the cell.  What's not clear to me is

Am I on the right track?  Is there sample code out there that
implements anything like this?

Thanks for this and all the other help I've found on the list.

Doug K;
_______________________________________________
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
References: 
 >Complex NSTableView cell (From: "Doug Knowles" <email@hidden>)

  • Prev by Date: Re: Determining how the app is run (intel/ppc/rosetta/os version)?
  • Next by Date: blinking text
  • Previous by thread: Complex NSTableView cell
  • Next by thread: NSMatrix tutorial
  • Index(es):
    • Date
    • Thread