NSRemoteView在日志中生成一条奇怪的消息

时间:2022-01-08 16:56:13

When I run my sandboxed application in macOS Sierra, I find this message in the Log :

当我在macOS Sierra中运行我的沙盒应用程序时,我在日志中找到此消息:

2016-09-21 12:08:42.787003 MyApp[1505:63581] warning: <NSRemoteView: 0x610000123160> determined it was necessary to configure <NSVBSavePanel: 0x103e002a0> to support remote view vibrancy

I don’t see this message in OS X 10.11.

我在OS X 10.11中没有看到此消息。

It seems that this message appears when the application displays a NSSavePanel that covers the main window.

当应用程序显示覆盖主窗口的NSSavePanel时,似乎会出现此消息。

I’ve verified the .xib file that contains the window, I’ve searched in the documentation of Xcode and with Google but I didn’t find anything to solve the problem.

我已经验证了包含该窗口的.xib文件,我在Xcode和Google的文档中搜索过,但我找不到任何解决问题的方法。

Added sept, 22

添加了9月22日

As soon as I declare a NSSavePanel in a method :

只要在方法中声明NSSavePanel:

NSSavePanel     *panel = [NSSavePanel savePanel];

The message is sent to the log.

消息将发送到日志。

2 个解决方案

#1


3  

macOS applications follow the pattern of sandbox. This means that you need to explicitly allow your application to read/write files, otherwise you encounter a permission problem that trigger some errors (one of them is in the form of the warning that you have underlined).

macOS应用程序遵循沙箱模式。这意味着您需要明确允许您的应用程序读/写文件,否则您会遇到触发某些错误的权限问题(其中一个错误是您已加下划线的警告形式)。

On the Capabilities tab of your application, be sure to enable at least one of the file access methods.

在应用程序的“功能”选项卡上,请确保至少启用一种文件访问方法。

NSRemoteView在日志中生成一条奇怪的消息

#2


0  

Try to find answers here:

试着在这里找到答案:

Also, may help:

另外,可能有所帮助:

<key>com.apple.security.scripting-targets</key>
    <dict>
        <key>com.apple.security.temporary-exception.apple-events</key>
        <array>
            <string>com.apple.terminal</string>
            <string>com.googlecode.iterm2</string>
            <string>com.apple.finder</string>
        </array>
    </dict>
    <key>com.apple.security.temporary-exception.shared-preference.read-write</key>
    <array>
        <string>com.apple.finder</string>
    </array>
    <key>com.apple.security.temporary-exception.apple-events</key>
    <array>
        <string>com.apple.terminal</string>
        <string>com.googlecode.iterm2</string>
        <string>com.apple.finder</string>
    </array>
</dict>

!!! If you try to submit to AppStore be informed that apple do not allow do this:

!如果您尝试提交给AppStore,请告知Apple不允许这样做:

  • com.apple.security.temporary-exception.apple-events and
  • com.apple.security.temporary-exception.apple-events and
  • com.apple.security.temporary-exception.apple-events
  • com.apple.security.temporary-exception.apple事件

#1


3  

macOS applications follow the pattern of sandbox. This means that you need to explicitly allow your application to read/write files, otherwise you encounter a permission problem that trigger some errors (one of them is in the form of the warning that you have underlined).

macOS应用程序遵循沙箱模式。这意味着您需要明确允许您的应用程序读/写文件,否则您会遇到触发某些错误的权限问题(其中一个错误是您已加下划线的警告形式)。

On the Capabilities tab of your application, be sure to enable at least one of the file access methods.

在应用程序的“功能”选项卡上,请确保至少启用一种文件访问方法。

NSRemoteView在日志中生成一条奇怪的消息

#2


0  

Try to find answers here:

试着在这里找到答案:

Also, may help:

另外,可能有所帮助:

<key>com.apple.security.scripting-targets</key>
    <dict>
        <key>com.apple.security.temporary-exception.apple-events</key>
        <array>
            <string>com.apple.terminal</string>
            <string>com.googlecode.iterm2</string>
            <string>com.apple.finder</string>
        </array>
    </dict>
    <key>com.apple.security.temporary-exception.shared-preference.read-write</key>
    <array>
        <string>com.apple.finder</string>
    </array>
    <key>com.apple.security.temporary-exception.apple-events</key>
    <array>
        <string>com.apple.terminal</string>
        <string>com.googlecode.iterm2</string>
        <string>com.apple.finder</string>
    </array>
</dict>

!!! If you try to submit to AppStore be informed that apple do not allow do this:

!如果您尝试提交给AppStore,请告知Apple不允许这样做:

  • com.apple.security.temporary-exception.apple-events and
  • com.apple.security.temporary-exception.apple-events and
  • com.apple.security.temporary-exception.apple-events
  • com.apple.security.temporary-exception.apple事件