我使用这个类创建链接(是吗?)http://www.nightproductions.net/references/dsclickableurltextfield_reference.html#setAttributedStringValue试图用的NSTextField
实现可点击文本框。我已经导入了头文件在我的控制器类并将它归咎于这样
NSAttributedString* str = [[NSAttributedString alloc] initWithString:@"http://www.yahoo.com"];
[url setAttributedStringValue:(NSAttributedString *)str];
[str release];
的文本字段的字符串值是不可选择的,不能编辑。
设置了文本字段值,但它不可点击,也不是链接。
在此先感谢。
添加可可标签。 – hallski 2010-04-07 14:07:04