Since the TableView requires knowledge of the height of the cells to lay them out. Soooo… I guess my question is… what is a good design pattern for this? It seems like everything I try winds up being a convoluted mess. The word wrapping of the NSTextField is similarly based on how wide the NSTextField is… which is determined by the width of the NSTableView. I know that I can implement the NSTableViewDelegate method - tableView:heightOfRow: to return the height, but the height will be determined based on the word wrapping used on the NSTextField. Depending on the textual content of the NSTextField, the size of the rows needed to display the cell will vary. Inside this table view, I have rows that have cells that have content consisting of a multi-row NSTextField with word-wrap enabled. I have an application with a view-based NSTableView in it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |