0

I am wondering how to draw a NSTextFieldCell like the one in NetNewsWire.

I have already subclassed a NSTextFieldCell for the group cell and specified it in my PXSourceList's dataCellForItem.

The source list is cell based.

I just don't know how to draw the cells.

NetNewsWire

Souljacker
  • 774
  • 1
  • 13
  • 35

1 Answers1

0

Check out the Apple sample "SourceView", that contains a subclass of NSTextFieldCell called ImageAndTextCell that does what you want.

https://developer.apple.com/library/mac/#samplecode/SourceView/Introduction/Intro.html

Though if it were me, I'd change to using a view based OutlineView and use the built in NSTableCellView which already supports an imageView.

Steve Waddicor
  • 2,197
  • 15
  • 20