3

I am developing a Cocoa Application for Mac OSX. I intend to have multiple NSScrollViews and I'd like all of them to scroll at the same time if one of them is selected and scrolled.

I saw for UIScrollView there is a method "scrollViewDidScroll" that I could do this with an iPhone application.

Is there anything similar for NSScrollView or a way to go about doing this? Any help would be greatly appreciated.

4

1 回答 1

3

您的解决方案将要求其中一个滚动视图需要接收另一个滚动视图正在滚动的通知。

Apple 实际上提供了一些关于同步滚动视图的非常好的文档,其中还包含一些示例代码片段。

于 2013-05-02T00:47:17.800 回答