//生成一个TextView
NSTextView*accessory = [[NSTextView alloc] initWithFrame:NSMakeRect(0,0,280,400)];
NSFont *font =[NSFont systemFontOfSize:[NSFont systemFontSize]];
NSDictionary*textAttributes = [NSDictionary dictionaryWithObject:fontforKey:NSFontAttributeName];
//往TextView中插入文字
[accessoryinsertText:[[NSAttributedString alloc] initWithString:fileInfo
attributes:textAttributes]];