我已经尝试过很多我在这里找到的答案。我一定是在做些蠢事,需要帮助。
@property (strong) IBOutlet NSTextField *title;中

它的课程是NSTextField。
我可以获得表视图中显示的数据,但不能将其链接到textfield。谢谢你的帮助..。
我记录了标题字段,并显示了内容:
title is test发布于 2013-05-25 06:33:14
在看了更多之后,我想出了这个,这是我需要它的时候用的:
NSInteger row = [[notification object] selectedRow];
currentItem = [itemArray objectAtIndex:row];
[self.itemTitle setStringValue:
[NSString stringWithFormat: @"%@", [currentItem valueForKey:@"title"]]];谢谢
https://stackoverflow.com/questions/16720858
复制相似问题