IKSlideshow的IKSlideshowModeQuickLook模式消失了吗?

发布于 2024-12-23 02:35:52 字数 1332 浏览 1 评论 0原文

在类 IKSlideshow 中,有一个名为 –runSlideshowWithDataSource:inMode:options: 的方法,

对于参数 slideshowMode文档说:

指示幻灯片中的项目类型的常量 - IKSlideshowModeImagesIKSlideshowModePDFIKSlideshowModeQuickLook。请参阅“幻灯片模式”。

点击链接后,IKSlideshowModeQuickLook 模式似乎消失了。只有三种模式(IKSlideshowModeImages、IKSlideshowModePDF、IKSlideshowModeOther)。

这个常数现在似乎没有定义。 至少,它不在:

/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.framework/Versions/A/Headers/IKImageBrowserView.h /Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.framework/Versions/A/Headers/IKImageBrowserView.h /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.framework/Versions/A/Headers/IKImageBrowserView.h

我是否缺少要导入的标头,或者此模式消失了?

In the class IKSlideshow, there is a method named –runSlideshowWithDataSource:inMode:options:

For the argument slideshowMode, The documentation says:

A constant that indicate what kind of items are in the slideshow — IKSlideshowModeImages, IKSlideshowModePDF, or IKSlideshowModeQuickLook. See “Slideshow Modes”.

Following the link, the mode IKSlideshowModeQuickLook seems to be gone. There is only three modes (IKSlideshowModeImages, IKSlideshowModePDF, IKSlideshowModeOther).

This constant seems to be defined nowhere now.
At least, it's not in:

/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.framework/Versions/A/Headers/IKImageBrowserView.h
/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.framework/Versions/A/Headers/IKImageBrowserView.h
/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.framework/Versions/A/Headers/IKImageBrowserView.h

Am I missing a header to import, or is this mode gone?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

向日葵 2024-12-30 02:35:52

当我使用 IKImageBrowserView 视图时,我所需要做的就是实现以下方法,并要求 QLPreviewPanel 出现在前面:

- (void) imageBrowser:(IKImageBrowserView *) aBrowser cellWasDoubleClickedAtIndex:(NSUInteger) index {
    [[QLPreviewPanel sharedPreviewPanel] makeKeyAndOrderFront:self];
}

我假设 IKSlideshowModeQuickLook 模式已消失,并且文档遗漏了这一事件。如果您发现其他情况,请告诉我。

As I was using a IKImageBrowserView view, all I needed to do was to implement the following method, and ask for QLPreviewPanel to come front:

- (void) imageBrowser:(IKImageBrowserView *) aBrowser cellWasDoubleClickedAtIndex:(NSUInteger) index {
    [[QLPreviewPanel sharedPreviewPanel] makeKeyAndOrderFront:self];
}

I assume that the IKSlideshowModeQuickLook mode is gone, and that the updater of the documentation missed this occurrence. Let me know if you find otherwise.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文