【发布时间】:2013-08-17 15:28:27
【问题描述】:
我正在使用 - (void)drawInsertionPointInRect:(NSRect)aRect color:(NSColor *)aColor turnedOn:(BOOL)flag 更改插入符号的大小。无论如何,当我移动选择时,插入符号会暂时变回其默认大小。
是否有另一种方法可以绘制我需要覆盖的插入符号?
我目前在做什么:
- (void)drawInsertionPointInRect:(NSRect)aRect color:(NSColor *)aColor turnedOn:(BOOL)flag {
aRect.origin.y -= 1;
aRect.origin.x -= 1;
aRect.size.width += 1;
aRect.size.height += 1;
[super drawInsertionPointInRect:aRect color:aColor turnedOn:flag];
}
【问题讨论】:
标签: nstextview caret