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

Re: ImageInTableview


  • Subject: Re: ImageInTableview
  • From: Chris Hanson <email@hidden>
  • Date: Sun, 10 Aug 2003 17:58:14 -0500

On Sunday, August 10, 2003, at 03:06 PM, Mathew Peterson wrote:
I want to place a small image in a tableview row for a certain column when its called. This is the code I am using but its simply sending me a description of the image (sure, the image is there...just not in the right form).

You should set the dataCell of the NSTableColumn to an instance of NSImageCell.

Alternately, you can probably return an NSAttributedString as the value for that location and just make sure it contains the image you want to display as an attachment. This should let you mix both text and images in one column. I haven't had a need to do so, but it shouldn't be impossible or even that difficult.

-- Chris

--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Mac OS X Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
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: 
 >ImageInTableview (From: Mathew Peterson <email@hidden>)

  • Prev by Date: Re: Setting focus to text field in drawer
  • Next by Date: #Import problems
  • Previous by thread: Re: ImageInTableview
  • Next by thread: Looking for clarification on Applescript event handlers
  • Index(es):
    • Date
    • Thread