我在仅限Mac 10.9的应用程序中使用IKImageBrowserView
。
当我双击IKImageBrowserView
中的项目时,在预览中打开该项目。
我想更改此行为并打开我自己的应用程序窗口,其中包含有关doubleclicked项目的详细信息。
如何简单地禁用IKImageBrowserView
的双击行为?
添加我自己的双击行为的最佳方法是什么?
答案 0 :(得分:1)
As per apple docs,您需要为IKImageBrowserView
设置委托,并且可以在cellWasDoubleClicked
方法中添加自定义实施。
- (void) imageBrowser:(IKImageBrowserView *) aBrowser cellWasDoubleClickedAtIndex:(NSUInteger) index {
// This method signals that the user double-clicked an item in the image browser view.
// You can implement this method if you want to perform custom tasks at that time.
}