How to access NSDocument object from another object held in NSMutableArray?
问题 This is really an extension of How to show calculated values in NSTableView? The problem : I have an NSDocument class that contains two properties: text (NSString) and phrases (NSMutableArray of NSObjects with NSString in them). In the Doc NIB file I have a TextView (to display phrases) with two columns. First column is bound to an ArrayController and displays NSString. That works ok. I want to count the number of NSString occurrences in text and display that in the second column. What I