Question

I'm trying to create a custom NSTextFieldCell for a NSTableView. I want to do something like the email listing provided by Mail (example below).

I found some references here and here, but I'm not able to evolve.

I think that it's not as simple as a multiline text. I think the cell should have predefined places, like the timestamp on the upper right corner, the attchment icon, etc... This "placeholders" should be always at the same place, regardless the text size. I'm thinking about embeeded objects.

Please, could you help me? An example or sample code is very welcome.

EDIT: I'm looking for a MAC OS X Lion (10.7.x) solution.

Cell example

Was it helpful?

Solution

Based on Monolo comment, I googled view-based table view. I found this excellent tutorial and followed it and I succeeded.

I also found this OS X Developer Library document regarding view-based programming guide. Very good too.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top