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

Re: FW: Enhancing NSTableView


  • Subject: Re: FW: Enhancing NSTableView
  • From: Vince DeMarco <email@hidden>
  • Date: Sat, 26 May 2001 18:20:06 -0700

On Saturday, May 26, 2001, at 05:27 PM, Mal Paine wrote:

I'm porting my already carbonized application over to cocoa (heck yeah!) and
I need to enhance NSTableView. In one column, I need to display a small
document icon and a string, just like in the Finder. In the next, I need to
have a popup menu. The third and final column is the most complex, as I need
it to show a progress bar (but only sometimes), a string, and a checkbox.

Obviously I'm not asking you to code this for me, but I'm wondering if
anyone can point me in the right direction for example source code that
shows how to place a control into a cell of a table. Any ideas or tips? I'm
sure I could figure out the rest of it if I saw a simple one-column example
that uses a control....

Basically you set a the drawingCell of a NSTableColumn to the correct thing.

If you want to draw an Icon use a NSImageCell as the cell in a particular column, in the in method that returns the object to put into the row/tableColumn return an NSImage.

Do the same for the popup menu, but you will have to populate it yourself which will be a bit harder.

Does this help??

vince


References: 
 >FW: Enhancing NSTableView (From: Mal Paine <email@hidden>)

  • Prev by Date: Re: Serious Questions
  • Next by Date: Re: FW: Enhancing NSTableView
  • Previous by thread: FW: Enhancing NSTableView
  • Next by thread: Re: FW: Enhancing NSTableView
  • Index(es):
    • Date
    • Thread