• 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: Image and Text Cell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image and Text Cell


  • Subject: Re: Image and Text Cell
  • From: Glenn Andreas <email@hidden>
  • Date: Mon, 8 Nov 2004 16:58:21 -0600

Title: Re: Image and Text Cell
At 11:44 AM +1300 11/9/04, Henry Maddocks wrote:
I've been struggling with this for days and I have to admit defeat:(

I'm trying to create an outline view that shows a file icon and file name in each cell. I started by following some sample code from cocoadev which used an NSBrowserCell but couldn't get it to work so I borrowed some code from the Apple Drag and Drop example and that behaved exactly the same. All I get is the file name text as set in objectValueForTableColumn. One thing I have noticed though is that when breaking in willDisplayOutlineCell the isa of cell is NSButtonCell and not ImageAndTextCell though the _dataCell of tableColumn is ImageAndTextCell. There must be something fundamental I'm doing wrong.

Can anyone offer any advice?


willDisplayOutlineCell is used when it is drawing the disclosure triangles (and thus why it is an NSButtonCell) - you want to use willDisplayCell (which is the "content" of the row).


--
Glenn Andreas                      email@hidden 
<http://www.gandreas.com/> oh my!
Mad, Bad, and Dangerous to Know
 _______________________________________________
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

  • Follow-Ups:
    • Re: Image and Text Cell
      • From: Henry Maddocks <email@hidden>
References: 
 >Image and Text Cell (From: Henry Maddocks <email@hidden>)

  • Prev by Date: Re: New Spotlight Info
  • Next by Date: Colored Rounded Box
  • Previous by thread: Image and Text Cell
  • Next by thread: Re: Image and Text Cell
  • Index(es):
    • Date
    • Thread