他,当我像这样将文本绘制到我的视图中时:
NSMutableDictionary *textAttrib = [[NSMutableDictionary alloc] init];
[textAttrib setObject:[NSFont fontWithName:@"Helvetica Light" size:15] forKey:NSFontAttributeName];
[textAttrib setObject:[NSColor grayColor] forKey:NSForegroundColorAttributeName];
[mouseString drawAtPoint:textPoint withAttributes:textAttrib];
如何更改文本的对齐方式?我只需要简单的左/右对齐,只能在文本字段中找到任何相关信息。谢谢!