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

Re: NSTableView and NSImage


  • Subject: Re: NSTableView and NSImage
  • From: Ondra Cada <email@hidden>
  • Date: Thu, 25 Apr 2002 22:51:21 +0200

On Friday, April 26, 2002, at 09:57 , Ian Reid wrote:

My initial choice is to use NSTableView. I have written a very simple application that has
delegated the "willDisplayCell" method. In the delegation, I call the "setImage" method
of the cell. Nothing appears in the table view.

*IIRC* (I haven't done this stuff for an eternity), you want to use an NSImageCell for the column's data cell. By default, there is a cell which supports text only.

OTOH, you can simplify your code: just returning the image from the normal data source tableView:objectValueForTableColumn:row: should be enough -- you don't need to use delegate methods.
---
Ondra Hada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >NSTableView and NSImage (From: Ian Reid <email@hidden>)

  • Prev by Date: Re: NSCopyObject
  • Next by Date: Undo - Redo?
  • Previous by thread: Re: NSTableView and NSImage
  • Next by thread: Drag&Drop
  • Index(es):
    • Date
    • Thread