Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Boghog

macrumors member
Original poster
May 7, 2007
89
0
Hi,
I'm trying to find a way to display different kinds of NSCell subclasses (like Text Field, Check Box, etc.) for different rows but in the same column of an NSTableView.
I've been trying to find an answer on the web, but maybe I'm not using the right search queries because I keep drawing blanks.

In case you're interested, what I'm hoping to achieve is a way to allow a user to add something like properties (of different kinds) to an object at runtime, which would then be displayed in a list so that he can edit the values for these properties.

Any help would be appreciated
 
Do you think maybe the delegate method -tableView:willDisplayCell:forTableColumn:row: could work for you? The alternative would be to define the column's cell as a schizophrenic subclass of NSCell that you would code to decide what kind of cell it is based on what it gets from the datasource.
 
Do you think maybe the delegate method -tableView:willDisplayCell:forTableColumn:row: could work for you? The alternative would be to define the column's cell as a schizophrenic subclass of NSCell that you would code to decide what kind of cell it is based on what it gets from the datasource.

I'm sorry, but I gotta ask. Is "schizophrenic sublass" a real term in the programming world?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.