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

Lio*_*l_A 29 xcode cocoa objective-c

当我在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
Run Code Online (Sandbox Code Playgroud)

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

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

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

添加了9月22日

只要在方法中声明NSSavePanel:

NSSavePanel     *panel = [NSSavePanel savePanel];
Run Code Online (Sandbox Code Playgroud)

消息将发送到日志.

Naz*_*zir 0

尝试在这里寻找答案:

另外,可能会有所帮助:

<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>
Run Code Online (Sandbox Code Playgroud)

!!! 如果您尝试向 AppStore 提交,请注意苹果不允许这样做:

  • com.apple.security.temporary-exception.apple-events 和
  • com.apple.security.temporary-exception.apple-events