0

请看附图:http: //i45.tinypic.com/fu8bpz.png

有没有人见过这种奇怪的滚动条行为?我在 NSScrollView 中嵌入了一个自定义视图。滚动条似乎没有正确绘制,它们也出现在我的自定义视图的中间。这发生在 10.6 上,但不是在我构建 10.7 时。我也在10.8上看到它。我尝试通过构建 XCode 3.2 和 XCode 4.3 来解决这个问题。

4

1 回答 1

0

我没有平衡我的 [[NSGraphicsContext current] saveGraphicsState] 与适当的 [[NSGraphicsContext current] restoreGraphicsState]。每个 [[NSGraphicsContext current] saveGraphicsState] 必须与 [... restoreGraphicsState] 调用平衡,否则 GraphicsContext 将处于不可预测的状态。

于 2013-07-30T05:03:16.747 回答